pub unsafe extern "C" fn aws_http_message_new_websocket_handshake_request(
    allocator: *mut aws_allocator,
    path: aws_byte_cursor,
    host: aws_byte_cursor
) -> *mut aws_http_message
Expand description

Create request with all required fields for a websocket upgrade request. The method and path are set, and the the following headers are added:

Host: Upgrade: websocket Connection: Upgrade Sec-WebSocket-Key: <base64 encoding of 16 random bytes> Sec-WebSocket-Version: 13