pub struct ConnectionOptions {
pub suppress_content_length_header: Option<bool>,
pub content_length_header_override: Option<i64>,
pub suppress_connection_header: Option<bool>,
pub chunk_size: Option<i64>,
pub chunk_delay: Option<Delay>,
pub keep_alive_override: Option<bool>,
pub close_socket: Option<bool>,
pub close_socket_delay: Option<Delay>,
pub extra: Extra,
}Expand description
Connection-level options for an HttpResponse — control content-length,
chunking, keep-alive and socket-close behaviour.
Fields§
§suppress_content_length_header: Option<bool>§content_length_header_override: Option<i64>§suppress_connection_header: Option<bool>§chunk_size: Option<i64>§chunk_delay: Option<Delay>§keep_alive_override: Option<bool>§close_socket: Option<bool>§close_socket_delay: Option<Delay>§extra: ExtraImplementations§
Trait Implementations§
Source§impl Clone for ConnectionOptions
impl Clone for ConnectionOptions
Source§fn clone(&self) -> ConnectionOptions
fn clone(&self) -> ConnectionOptions
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ConnectionOptions
impl Debug for ConnectionOptions
Source§impl Default for ConnectionOptions
impl Default for ConnectionOptions
Source§fn default() -> ConnectionOptions
fn default() -> ConnectionOptions
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ConnectionOptions
impl<'de> Deserialize<'de> for ConnectionOptions
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for ConnectionOptions
impl PartialEq for ConnectionOptions
Source§fn eq(&self, other: &ConnectionOptions) -> bool
fn eq(&self, other: &ConnectionOptions) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for ConnectionOptions
impl Serialize for ConnectionOptions
impl StructuralPartialEq for ConnectionOptions
Auto Trait Implementations§
impl Freeze for ConnectionOptions
impl RefUnwindSafe for ConnectionOptions
impl Send for ConnectionOptions
impl Sync for ConnectionOptions
impl Unpin for ConnectionOptions
impl UnsafeUnpin for ConnectionOptions
impl UnwindSafe for ConnectionOptions
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more