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 mime;
pub use mime_guess;
pub use tree_magic_mini;
pub use vary::VariedResponse;
pub use vary::Vary;
Modules
- Prelude for async utilities for use in web applications.
Structs
- A parsed mime or media type.
- The arguments and name of a single
Present
extension. - An iterator of
str
for the arguments inPresentArguments
- The
Present
extensions parsed from a file containing them. - An iterator of
PresentArguments
fromPresentExtensions
- Helper struct for
read_to_async
.
Functions
- Reads from
reader
tobuffer
until it returns zero bytes ormax_length
is reached.BytesMut::len
is used as a starting length ofbuffer
. - Requires a
Future
to complete before the specified duration has elapsed.