pub fn wrap<S1, M1>(
        self,
        mw: M1,
    ) -> ClientBuilder<S, NestTransform<M, M1, S1, ConnectRequest>>
    where
        M: Transform<S1, ConnectRequest>,
        M1: Transform<M::Transform, ConnectRequest>,
    {
        ClientBuilder {
            middleware: NestTransform::new(self.middleware, mw),
            default_headers: self.default_headers,
            max_http_version: self.max_http_version,
            stream_window_size: self.stream_window_size,
            conn_window_size: self.conn_window_size,
            headers: self.headers,
            timeout: self.timeout,
            connector: self.connector,
            local_address: self.local_address,
            max_redirects: self.max_redirects,
        }
    }
/// Registers middleware, in the form of a middleware component (type),
/// that runs during inbound and/or outbound processing in the request
/// life-cycle (request -> response), modifying request/response as
/// necessary, across all requests managed by the Client.
Registers middleware, in the form of a middleware component (type),
that runs during inbound and/or outbound processing in the request
life-cycle (request -> response), modifying request/response as
necessary, across all requests managed by the Client.
Registers middleware in the form of a middleware component ( type ) that runs during inbound and / or outbound processing in the request life - cycle ( request - > response ) modifying request / response as necessary across all requests managed by the Client .
pub fn wrap<S1, M1>(
        self,
        mw: M1,
    ) -> ClientBuilder<S, NestTransform<M, M1, S1, ConnectRequest>>
    where
        M: Transform<S1, ConnectRequest>,
        M1: Transform<M::Transform, ConnectRequest>,
    {
        ClientBuilder {
            middleware: NestTransform::new(self.middleware, mw),
            default_headers: self.default_headers,
            max_http_version: self.max_http_version,
            stream_window_size: self.stream_window_size,
            conn_window_size: self.conn_window_size,
            headers: self.headers,
            timeout: self.timeout,
            connector: self.connector,
            local_address: self.local_address,
            max_redirects: self.max_redirects,
        }
    }
pub fn wrap < S1 , M1 > ( self , mw : M1 , ) -> ClientBuilder < S , NestTransform < M , M1 , S1 , ConnectRequest > > where M : Transform < S1 , ConnectRequest > , M1 : Transform < M :: Transform , ConnectRequest > , { ClientBuilder { middleware : NestTransform :: new ( self . middleware , mw ) , default_headers : self . default_headers , max_http_version : self . max_http_version , stream_window_size : self . stream_window_size , conn_window_size : self . conn_window_size , headers : self . headers , timeout : self . timeout , connector : self . connector , local_address : self . local_address , max_redirects : self . max_redirects , } }
Registers middleware, in the form of a middleware component (type),
that runs during inbound and/or outbound processing in the request
life-cycle (request -> response), modifying request/response as
necessary, across all requests managed by the Client.
Registers middleware in the form of a middleware component ( type ) that runs during inbound and / or outbound processing in the request life - cycle ( request - > response ) modifying request / response as necessary across all requests managed by the Client .
self
mw
M1
self
mw
M1