[−][src]Struct actix_web::dev::RequestHead
Fields
uri: Uri
method: Method
version: Version
headers: HeaderMap
extensions: RefCell<Extensions>
peer_addr: Option<SocketAddr>
Implementations
impl RequestHead
[src]
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 camel_case_headers(&self) -> bool
[src]
Is to uppercase headers with Camel-Case.
Default is false
pub fn set_camel_case_headers(&mut self, val: bool)
[src]
Set true
to send headers which are formatted as Camel-Case.
pub fn set_connection_type(&mut self, ctype: ConnectionType)
[src]
Set connection type of the message
pub fn connection_type(&self) -> ConnectionType
[src]
Connection type
pub fn upgrade(&self) -> bool
[src]
Connection upgrade status
pub fn chunked(&self) -> bool
[src]
Get response body chunking state
pub fn no_chunking(&mut self, val: bool)
[src]
pub fn expect(&self) -> bool
[src]
Request contains EXPECT
header
Trait Implementations
Auto Trait Implementations
impl !RefUnwindSafe for RequestHead
impl !Send for RequestHead
impl !Sync for RequestHead
impl Unpin for RequestHead
impl !UnwindSafe for RequestHead
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> Same<T> for T
type Output = T
Should always be Self
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<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,