Update request header after create websocket
dhidalgofadrique opened this issue · comments
David Hidalgo Fadrique commented
Question
After creating a websocket with an URLRequest containing a custom header (something like "headerKey=headerValue_1") and opening it, is it possible to update this header with a new value (something like "headerKey=new_headerValue_2")? I've tried to update this value using:
socket.request.setValue("new_headerValue_2", forHTTPHeaderField: "headerKey")
But it doesn't seem to work
Environment:
- OS/Version: iOS/16.4
- Starscream Version: 4.0.4
- Xcode version: 15.0.1