kvarn

Struct FatResponse

source
pub struct FatResponse { /* private fields */ }
Expand description

A Response returned by handle_request().

Contains all preference information to the lower-level functions. Most things like content-length, content-encoding, content-type, cache-control, and server caching will be automatically handled.

Implementations§

source§

impl FatResponse

source

pub fn new( response: Response<Bytes>, server_cache_preference: ServerCachePreference, ) -> Self

Create a new FatResponse with server_cache_preference advising Kvarn of how to cache the content. All other preferences are set to Full with a future of None.

Choose