Skip to main content

client_request_from_uri

Function client_request_from_uri 

Source
pub fn client_request_from_uri(uri: Uri, version: Version) -> Request<()>
Expand description

Prepare a Request with given Uri and Version for websocket connection.

Only Version::HTTP_11 and Version::HTTP_2 are supported. After process the request would be ready to be sent to server.