Struct actix_web::dev::ResponseHead
source · [−]pub struct ResponseHead {
pub version: Version,
pub status: StatusCode,
pub headers: HeaderMap,
pub reason: Option<&'static str>,
/* private fields */
}
Fields
version: Version
status: StatusCode
headers: HeaderMap
reason: Option<&'static str>
Implementations
Create new instance of ResponseHead
type
Mutable reference to the message headers.
Sets the flag that controls wether to send headers formatted as Camel-Case.
Only applicable to HTTP/1.x responses; HTTP/2 header names are always lowercase.
Set connection type of the message
Check if keep-alive is enabled
Set no chunking for payload
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for ResponseHead
impl Send for ResponseHead
impl Sync for ResponseHead
impl Unpin for ResponseHead
impl UnwindSafe for ResponseHead
Blanket Implementations
Mutably borrows from an owned value. Read more
pub fn vzip(self) -> V
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more