Struct sozu_lib::protocol::http::Http

source ·
pub struct Http<Front: SocketHandler, L: ListenerHandler> {
Show 29 fields pub frontend: Front, pub backend: Option<TcpStream>, pub status: SessionStatus, pub front_buf: Option<BufferQueue>, pub back_buf: Option<BufferQueue>, pub cluster_id: Option<String>, pub request_id: Ulid, pub backend_id: Option<String>, pub front_readiness: Readiness, pub back_readiness: Readiness, pub public_address: SocketAddr, pub session_address: Option<SocketAddr>, pub backend_data: Option<Rc<RefCell<Backend>>>, pub sticky_name: String, pub sticky_session: Option<StickySession>, pub protocol: Protocol, pub request_state: Option<RequestState>, pub response_state: Option<ResponseState>, pub req_header_end: Option<usize>, pub res_header_end: Option<usize>, pub added_req_header: Option<AddedRequestHeader>, pub added_res_header: String, pub keepalive_count: usize, pub backend_stop: Option<Instant>, pub closing: bool, pub front_timeout: TimeoutContainer, pub back_timeout: TimeoutContainer, pub frontend_timeout_duration: Duration, pub listener: Rc<RefCell<L>>, /* private fields */
}
Expand description

Http will be contained in State wish itself is contained by Session

TODO: rename me (example: HttpState)

Fields§

§frontend: Front§backend: Option<TcpStream>§status: SessionStatus§front_buf: Option<BufferQueue>§back_buf: Option<BufferQueue>§cluster_id: Option<String>§request_id: Ulid§backend_id: Option<String>§front_readiness: Readiness§back_readiness: Readiness§public_address: SocketAddr§session_address: Option<SocketAddr>§backend_data: Option<Rc<RefCell<Backend>>>§sticky_name: String§sticky_session: Option<StickySession>§protocol: Protocol§request_state: Option<RequestState>§response_state: Option<ResponseState>§req_header_end: Option<usize>§res_header_end: Option<usize>§added_req_header: Option<AddedRequestHeader>§added_res_header: String§keepalive_count: usize§backend_stop: Option<Instant>§closing: bool§front_timeout: TimeoutContainer§back_timeout: TimeoutContainer§frontend_timeout_duration: Duration§listener: Rc<RefCell<L>>

Implementations§

Retrieve the response status from the http response state

Read content from the session

Auto Trait Implementations§

Blanket Implementations§

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Should always be Self
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.