Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Brotli ¶
type Brotli struct {
Quality *int `json:"quality,omitempty"`
}
Brotli can create brotli encoders. Note that brotli is not known for great encoding performance, and its use during requests is discouraged; instead, pre-compress the content instead.
func (Brotli) AcceptEncoding ¶
AcceptEncoding returns the name of the encoding as used in the Accept-Encoding request headers.
func (Brotli) CaddyModule ¶
func (Brotli) CaddyModule() caddy.ModuleInfo
CaddyModule returns the Caddy module information.
func (Brotli) NewEncoder ¶
NewEncoder returns a new brotli writer.
func (*Brotli) UnmarshalCaddyfile ¶
UnmarshalCaddyfile sets up the handler from Caddyfile tokens.
Click to show internal directories.
Click to hide internal directories.