You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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:
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:
The text was updated successfully, but these errors were encountered: