Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetAcceptEncodings ¶
GetAcceptEncodings is reading Accept-Encoding header.
func GetContentEncodings ¶
GetContentEncodings is reading Content-Encoding header.
Types ¶
type Encoding ¶
type Encoding interface {
// Match returns whether the encoding matches the encoding string.
Match(encoding string) bool
// NewReader is creating reader of encoding.
NewReader(r io.ReadCloser) (io.ReadCloser, error)
// NewWriter is creating writer of encoding.
NewWriter(w http.ResponseWriter) (ResponseWriteCloser, error)
// AddContentEncoding is add Content-Encoding to header.
AddContentEncoding(header http.Header, requested string)
}
Encoding is an encoding for the compression method used in HTTP.
type ResponseWriteCloser ¶
type ResponseWriteCloser interface {
http.ResponseWriter
io.Closer
}
ResponseWriteCloser is http.ResponseWriter and io.Closer.
Click to show internal directories.
Click to hide internal directories.