Struct sozu_command_lib::proxy::HttpListener
source · [−]pub struct HttpListener {
pub front: SocketAddr,
pub public_address: Option<SocketAddr>,
pub answer_404: String,
pub answer_503: String,
pub expect_proxy: bool,
pub sticky_name: String,
pub front_timeout: u32,
pub back_timeout: u32,
pub connect_timeout: u32,
pub request_timeout: u32,
}
Fields
front: SocketAddr
public_address: Option<SocketAddr>
answer_404: String
answer_503: String
expect_proxy: bool
sticky_name: String
front_timeout: u32
client inactive time
back_timeout: u32
backend server inactive time
connect_timeout: u32
time to connect to the backend
request_timeout: u32
max time to send a complete request
Trait Implementations
sourceimpl Clone for HttpListener
impl Clone for HttpListener
sourcefn clone(&self) -> HttpListener
fn clone(&self) -> HttpListener
Returns a copy of the value. Read more
1.0.0 · sourceconst fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Debug for HttpListener
impl Debug for HttpListener
sourceimpl Default for HttpListener
impl Default for HttpListener
sourcefn default() -> HttpListener
fn default() -> HttpListener
Returns the “default value” for a type. Read more
sourceimpl<'de> Deserialize<'de> for HttpListener
impl<'de> Deserialize<'de> for HttpListener
sourcefn 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
sourceimpl Hash for HttpListener
impl Hash for HttpListener
sourceimpl PartialEq<HttpListener> for HttpListener
impl PartialEq<HttpListener> for HttpListener
sourcefn eq(&self, other: &HttpListener) -> bool
fn eq(&self, other: &HttpListener) -> bool
sourceimpl Serialize for HttpListener
impl Serialize for HttpListener
impl Eq for HttpListener
impl StructuralEq for HttpListener
impl StructuralPartialEq for HttpListener
Auto Trait Implementations
impl RefUnwindSafe for HttpListener
impl Send for HttpListener
impl Sync for HttpListener
impl Unpin for HttpListener
impl UnwindSafe for HttpListener
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
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