Documentation ¶
Overview ¶
Package httpencoding provides functions to transparently encode/decode HTTP bodies
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CompressData ¶
func CompressData(w http.ResponseWriter, r *http.Request) io.WriteCloser
CompressData returns a writer that writes encoded data to w. The chosen encoding is based on the Accept-Encoding header and defaults to the identity encoding.
func UncompressData ¶
func UncompressData(r *http.Response) (io.ReadCloser, error)
UncompressData returns a reads that decodes data from r.Body. The encoding is determined based on the Content-Encoding header and an error is returned if the encoding is unknown.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.