pub fn finish(self) -> ClientResponse {
        // allow unused mut when cookies feature is disabled
        #[allow(unused_mut)]
        let mut head = self.head;

        #[cfg(feature = "cookies")]
        for cookie in self.cookies.delta() {
            use actix_http::http::header::{self, HeaderValue};

            head.headers.insert(
                header::SET_COOKIE,
                HeaderValue::from_str(&cookie.encoded().to_string()).unwrap(),
            );
        }

        if let Some(pl) = self.payload {
            ClientResponse::new(head, pl)
        } else {
            ClientResponse::new(head, h1::Payload::empty().into())
        }
    }
/// Complete response creation and generate `ClientResponse` instance
Complete response creation and generate `ClientResponse` instance
Complete response creation and generate ` ClientResponse ` instance
pub fn finish(self) -> ClientResponse {
        // allow unused mut when cookies feature is disabled
        #[allow(unused_mut)]
        let mut head = self.head;
        #[cfg(feature = "cookies")]
        for cookie in self.cookies.delta() {
            use actix_http::http::header::{self, HeaderValue};
            head.headers.insert(
                header::SET_COOKIE,
                HeaderValue::from_str(&cookie.encoded().to_string()).unwrap(),
            );
        }
        if let Some(pl) = self.payload {
            ClientResponse::new(head, pl)
        } else {
            ClientResponse::new(head, h1::Payload::empty().into())
        }
    }
pub fn finish ( self ) -> ClientResponse { // allow unused mut when cookies feature is disabled # [ allow ( unused_mut ) ] let mut head = self . head ; # [ cfg ( feature " " ) ] for cookie in self . cookies . delta ( ) { use actix_http :: http :: header :: { self , HeaderValue } ; head . headers . insert ( header :: SET_COOKIE , HeaderValue :: from_str ( & cookie . encoded ( ) . to_string ( ) ) . unwrap ( ) , ) ; } if let Some ( pl ) = self . payload { ClientResponse :: new ( head , pl ) } else { ClientResponse :: new ( head , h1 :: Payload :: empty ( ) . into ( ) ) } }
Complete response creation and generate `ClientResponse` instance
Complete response creation and generate ` ClientResponse ` instance
self
self