Struct hyper_staticfile::ResolveParams
source · pub struct ResolveParams {
pub path: PathBuf,
pub is_dir_request: bool,
pub accept_encoding: AcceptEncoding,
}
Expand description
All of the parsed request parameters used in resolving a file.
This struct is primarily used for Resolver::rewrite
/ Resolver::set_rewrite
.
Fields§
§path: PathBuf
Sanitized path of the request.
is_dir_request: bool
Whether a directory was requested. (The request path ended with a slash.)
accept_encoding: AcceptEncoding
Intersection of the request Accept-Encoding
header and allowed_encodings
.
Only modify this field to disable encodings. Enabling additional encodings here may cause a client to receive encodings it does not understand.
Trait Implementations§
source§impl Clone for ResolveParams
impl Clone for ResolveParams
source§fn clone(&self) -> ResolveParams
fn clone(&self) -> ResolveParams
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto Trait Implementations§
impl RefUnwindSafe for ResolveParams
impl Send for ResolveParams
impl Sync for ResolveParams
impl Unpin for ResolveParams
impl UnwindSafe for ResolveParams
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more