kvarn::extensions

Struct PresentData

source
pub struct PresentData<'a> {
    pub address: SocketAddr,
    pub request: &'a FatRequest,
    pub body: &'a mut LazyRequestBody,
    pub host: &'a Host,
    pub path: Option<&'a Path>,
    pub server_cache_preference: &'a mut ServerCachePreference,
    pub client_cache_preference: &'a mut ClientCachePreference,
    pub response: &'a mut Response<BytesCow>,
    pub args: PresentArguments,
}
Expand description

Add data pretending to present state in creating the response.

See module level documentation.

Fields§

§address: SocketAddr§request: &'a