kutil_http/cache/
configuration.rs

1use super::hooks::*;
2
3//
4// CachingConfiguration
5//
6
7/// Caching configuration.
8#[derive(Clone)]
9pub struct CachingConfiguration {
10    /// Minimum body size.
11    pub min_body_size: usize,
12
13    /// Maximum body size.
14    pub max_body_size: usize,
15
16    /// Cacheable by default.
17    pub cacheable_by_default: bool,
18
19    /// Cache duration (hook).
20    pub cache_duration: Option<CacheDurationHook>,
21}
22
23//
24// EncodingConfiguration
25//
26
27/// Encoding configuration.
28#[derive(Clone)]
29pub struct EncodingConfiguration {
30    /// Minimum body size.
31    pub min_body_size: usize,
32
33    /// Encodable by default.
34    pub encodable_by_default: bool,
35
36    /// Keep identity encoding.
37    pub keep_identity_encoding: bool,
38}