Expand description
Client upgrade request.
From RFC-6455 Section 4.1:
Once a connection to the server has been established (including a connection via a proxy or over a TLS-encrypted tunnel), the client MUST send an opening handshake to the server. The handshake consists of an HTTP Upgrade request, along with a list of required and optional header fields.
Once the client’s opening handshake has been sent, the client MUST wait for a response from the server before sending any further data.
Example:
GET /path HTTP/1.1
host: www.example.com
upgrade: websocket
connection: upgrade
sec-websocket-key: dGhlIHNhbXBsZSBub25jZQ==
sec-websocket-version: 13
Structs
- Http request presentation.