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
Performs the conversion.
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
Performs the conversion.
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 · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcepub fn to_owned(&self) -> T
pub fn to_owned(&self) -> T
Creates owned data from borrowed data, usually by cloning. Read more
sourcepub fn clone_into(&self, target: &mut T)
pub fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more