Expand description
encoding-negotiator
A library that negotiates the content encoding of an HTTP answer. It picks the encoding a client asked for out of the encodings that are offered, and tells whether a body of a content type is worth compressing.
Structs§
- Compression
Policy - The rules that decide which encoding an answer carries.
Derive Macros§
- Custom
Debug - A procedural macro that implements the
std::fmt::Debugtrait for a type, with support for the#[debug(skip)]attribute to skip specific fields. - Data
- A procedural macro that combines getter, mutable getter, and setter functionality in a single derive.
- Display
Debug - A procedural macro that implements the
std::fmt::Displaytrait for a type, using the standard debug format ({:?}) for formatting. - Display
Debug Format - A procedural macro that implements the
std::fmt::Displaytrait for a type, using the detailed debug format ({:#?}) for formatting. - Getter
- A procedural macro that automatically generates getter methods for struct and enum fields.
- Getter
Mut - A procedural macro that automatically generates mutable getter methods for struct and enum fields.
- New
- A procedural macro that generates a constructor function for structs.
- Setter
- A procedural macro that automatically generates setter methods for struct and enum fields.