pub struct HttpContext {Show 18 fields
pub keep_alive_backend: bool,
pub keep_alive_frontend: bool,
pub sticky_session_found: Option<String>,
pub method: Option<Method>,
pub authority: Option<String>,
pub path: Option<String>,
pub status: Option<u16>,
pub reason: Option<String>,
pub user_agent: Option<String>,
pub closing: bool,
pub id: Ulid,
pub backend_id: Option<String>,
pub cluster_id: Option<String>,
pub protocol: Protocol,
pub public_address: SocketAddr,
pub session_address: Option<SocketAddr>,
pub sticky_name: String,
pub sticky_session: Option<String>,
}
Expand description
This is the container used to store and use information about the session from within a Kawa parser callback
Fields§
§keep_alive_backend: bool
set to false if Kawa finds a “Connection” header with a “close” value in the response
keep_alive_frontend: bool
set to false if Kawa finds a “Connection” header with a “close” value in the request
sticky_session_found: Option<String>
the value of the sticky session cookie in the request
method: Option<Method>
the value of the method in the request line
the value of the authority of the request (in the request line of “Host” header)
path: Option<String>
the value of the path in the request line
status: Option<u16>
the value of the status code in the response line
reason: Option<String>
the value of the reason in the response line
user_agent: Option<String>
§closing: bool
signals wether Kawa should write a “Connection” header with a “close” value (request and response)
id: Ulid
the value of the custom header, named “Sozu-Id”, that Kawa should write (request and response)
backend_id: Option<String>
§cluster_id: Option<String>
§protocol: Protocol
the value of the protocol Kawa should write in the Forwarded headers of the request
public_address: SocketAddr
the value of the public address Kawa should write in the Forwarded headers of the request
session_address: Option<SocketAddr>
the value of the session address Kawa should write in the Forwarded headers of the request
sticky_name: String
the name of the cookie Kawa should read from the request to get the sticky session
sticky_session: Option<String>
the sticky session that should be used used to create a “Set-Cookie” header in the response in case it differs from sticky_session_found