Struct actix_web::dev::ResponseHead [−][src]
pub struct ResponseHead {
pub version: Version,
pub status: StatusCode,
pub headers: HeaderMap,
pub reason: Option<&'static str>,
// some fields omitted
}Fields
version: Versionstatus: StatusCodeheaders: HeaderMapreason: Option<&'static str>Implementations
Create new instance of ResponseHead type
Message extensions
Mutable reference to a the message’s extensions
Mutable reference to the message headers.
Set connection type of the message
Check if keep-alive is enabled
Set no chunking for payload
Trait Implementations
Convert ResponseHead to a ResponseBuilder
pub fn from(head: &'a ResponseHead) -> ResponseBuilderⓘNotable traits for ResponseBuilder
impl Future for ResponseBuilder type Output = Result<Response<AnyBody>, Error>;
pub fn from(head: &'a ResponseHead) -> ResponseBuilderⓘNotable traits for ResponseBuilder
impl Future for ResponseBuilder type Output = Result<Response<AnyBody>, Error>;Performs the conversion.
Auto Trait Implementations
impl !RefUnwindSafe for ResponseHeadimpl !Send for ResponseHeadimpl !Sync for ResponseHeadimpl Unpin for ResponseHeadimpl !UnwindSafe for ResponseHead