[−][src]Struct actix_web::dev::ResponseHead
Fields
version: Version
status: StatusCode
headers: HeaderMap
reason: Option<&'static str>
Methods
impl ResponseHead
[src]
pub fn new(status: StatusCode) -> ResponseHead
[src]
Create new instance of ResponseHead
type
pub fn extensions(&self) -> Ref<Extensions>
[src]
Message extensions
pub fn extensions_mut(&self) -> RefMut<Extensions>
[src]
Mutable reference to a the message's extensions
pub fn headers(&self) -> &HeaderMap
[src]
Read the message headers.
pub fn headers_mut(&mut self) -> &mut HeaderMap
[src]
Mutable reference to the message headers.
pub fn set_connection_type(&mut self, ctype: ConnectionType)
[src]
Set connection type of the message
pub fn connection_type(&self) -> ConnectionType
[src]
pub fn keep_alive(&self) -> bool
[src]
Check if keep-alive is enabled
pub fn upgrade(&self) -> bool
[src]
Check upgrade status of this message
pub fn reason(&self) -> &str
[src]
Get custom reason for the response
pub fn chunked(&self) -> bool
[src]
Get response body chunking state
pub fn no_chunking(&mut self, val: bool)
[src]
Set no chunking for payload
Trait Implementations
impl Debug for ResponseHead
[src]
impl<'a> From<&'a ResponseHead> for ResponseBuilder
[src]
Convert ResponseHead
to a ResponseBuilder
fn from(head: &'a ResponseHead) -> ResponseBuilder
[src]
Auto Trait Implementations
impl !Send for ResponseHead
impl Unpin for ResponseHead
impl !Sync for ResponseHead
impl !UnwindSafe for ResponseHead
impl !RefUnwindSafe for ResponseHead
Blanket Implementations
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,