Documentation ¶
Index ¶
Constants ¶
View Source
const DefaultBytesSize = 32 * 1024
DefaultBytesSize is the default size of a bytes slice in a Bytes pool.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Bytes ¶
type Bytes struct {
// contains filtered or unexported fields
}
Bytes is a bytes buffer pool that can be used in a http reverse proxy so that large transfers won't use up all memory really fast on a machine that does not have a lot of memory.
Click to show internal directories.
Click to hide internal directories.