pub trait RequestBuilderExt {
    // Required method
    fn upgrade(self) -> UpgradedRequestBuilder;
Expand description

Trait that extends reqwest::RequestBuilder with an upgrade method.

Required Methods§

Implementations on Foreign Types§


impl RequestBuilderExt for RequestBuilder


fn upgrade(self) -> UpgradedRequestBuilder

Upgrades the RequestBuilder to peform a websocket handshake. This returns a wrapped type, so you you must do this after you setup your request, and just before you send the request.