Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update request header after create websocket #990

Open
dhidalgofadrique opened this issue Nov 20, 2023 · 0 comments
Open

Update request header after create websocket #990

dhidalgofadrique opened this issue Nov 20, 2023 · 0 comments
Labels

Comments

@dhidalgofadrique
Copy link

dhidalgofadrique commented Nov 20, 2023

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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant