Expand description
Prelude: internal
The purpose of this module is to expose the commonly used internals of Kvarn.
This is not part of the public API and may change rapidly
Re-exports§
pub use application::Body;pub use application::HttpConnection;pub use application::PushedResponsePipe;pub use application::ResponseBodyPipe;pub use application::ResponsePipe;pub use comprash::CacheOut;pub use comprash::FileCache;pub use comprash::MokaCache;pub use comprash::PathQuery;pub use comprash::ResponseCache;pub use encryption::Encryption;pub use error::default as default_error;pub use extensions::ready;pub use extensions::RetFut;pub use extensions::RetSyncFut;pub use limiting::Action as LimitAction;pub use limiting::Manager as LimitManager;pub use vary::VariedResponse;pub use vary::Vary;pub use mime;pub use mime_guess;pub use tree_magic_mini;
Modules§
- Prelude for async utilities for use in web applications.
Structs§
- A parsed mime or media type.
- The arguments and name of a single
Presentextension. - An iterator of
strfor the arguments inPresentArguments - The
Presentextensions parsed from a file containing them. - An iterator of
PresentArgumentsfromPresentExtensions - Helper struct for
read_to_async.
Functions§
- Reads from
readertobufferuntil it returns zero bytes ormax_lengthis reached.BytesMut::lenis used as a starting length ofbuffer. Note thatmax_lenis a suggestion and will probably be overran. - Requires a
Futureto complete before the specified duration has elapsed.