Documentation
¶
Overview ¶
Package httpbuffer provides a buffer for HTTP requests so that the Content-Length may be set and compression applied for dynamic pages.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
// BufferSize determines the initial size of the buffer
BufferSize = 128 << 10
)
Functions ¶
Types ¶
type Encoding ¶
type Encoding interface { // Open takes a buffer and returns an encoder-wrapped buffer Open(io.Writer) io.Writer // Close returns the encoder-wrapped buffer to flush/close and release // resources Close(io.Writer) // Name returns the identifier for the encoding algorithm Name() string }
Encoding represents a type that applies a Coding to a byte stream
Directories
¶
Path | Synopsis |
---|---|
Package brotli provides an Encoder for the httpbuffer package that uses brotli compression.
|
Package brotli provides an Encoder for the httpbuffer package that uses brotli compression. |
Package deflate provides an Encoder for the httpbuffer package that uses deflate compression
|
Package deflate provides an Encoder for the httpbuffer package that uses deflate compression |
Package gzip provides an Encoder for the httpbuffer package that uses gzip compression.
|
Package gzip provides an Encoder for the httpbuffer package that uses gzip compression. |
Click to show internal directories.
Click to hide internal directories.