Struct actix_http::RequestHead
source · [−]pub struct RequestHead {
pub method: Method,
pub uri: Uri,
pub version: Version,
pub headers: HeaderMap,
pub peer_addr: Option<SocketAddr>,
/* private fields */
}
Fields
method: Method
uri: Uri
version: Version
headers: HeaderMap
peer_addr: Option<SocketAddr>
Implementations
sourceimpl RequestHead
impl RequestHead
sourcepub fn headers_mut(&mut self) -> &mut HeaderMap
pub fn headers_mut(&mut self) -> &mut HeaderMap
Mutable reference to the message headers.
sourcepub fn camel_case_headers(&self) -> bool
pub fn camel_case_headers(&self) -> bool
Is to uppercase headers with Camel-Case.
Default is false
sourcepub fn set_camel_case_headers(&mut self, val: bool)
pub fn set_camel_case_headers(&mut self, val: bool)
Set true
to send headers which are formatted as Camel-Case.
sourcepub fn set_connection_type(&mut self, ctype: ConnectionType)
pub fn set_connection_type(&mut self, ctype: ConnectionType)
Set connection type of the message
sourcepub fn connection_type(&self) -> ConnectionType
pub fn connection_type(&self) -> ConnectionType
Connection type
pub fn no_chunking(&mut self, val: bool)
Trait Implementations
sourceimpl AsRef<RequestHead> for RequestHeadType
impl AsRef<RequestHead> for RequestHeadType
sourcefn as_ref(&self) -> &RequestHead
fn as_ref(&self) -> &RequestHead
Converts this type into a shared reference of the (usually inferred) input type.
sourceimpl Clone for RequestHead
impl Clone for RequestHead
sourcefn clone(&self) -> RequestHead
fn clone(&self) -> RequestHead
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for RequestHead
impl Debug for RequestHead
sourceimpl Default for RequestHead
impl Default for RequestHead
sourcefn default() -> RequestHead
fn default() -> RequestHead
Returns the “default value” for a type. Read more
sourceimpl From<RequestHead> for RequestHeadType
impl From<RequestHead> for RequestHeadType
sourcefn from(head: RequestHead) -> Self
fn from(head: RequestHead) -> Self
Converts to this type from the input type.
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
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more