Struct hyper_staticfile::ResponseBuilder [−][src]
pub struct ResponseBuilder<'a> {
pub path: &'a str,
pub query: Option<&'a str>,
pub file_response_builder: FileResponseBuilder,
}
Expand description
Utility to build the default response for a resolve
result.
This struct allows direct access to its fields, but these fields are typically initialized by the accessors, using the builder pattern. The fields are basically a bunch of settings that determine the response details.
Fields
path: &'a str
The request path.
query: Option<&'a str>
The request query string.
file_response_builder: FileResponseBuilder
Inner file response builder.
Implementations
Apply parameters based on a request.
Apply parameters based on request parts.
Apply parameters based on a request URI.
Add cache headers to responses for the given lifespan.
Trait Implementations
Returns the “default value” for a type. Read more
Auto Trait Implementations
impl<'a> RefUnwindSafe for ResponseBuilder<'a>
impl<'a> Send for ResponseBuilder<'a>
impl<'a> Sync for ResponseBuilder<'a>
impl<'a> Unpin for ResponseBuilder<'a>
impl<'a> UnwindSafe for ResponseBuilder<'a>
Blanket Implementations
Mutably borrows from an owned value. Read more
pub fn vzip(self) -> V
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more