Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func JoinHeaders ¶
JoinHeaders adds headers to the original message, if their field name is not already included.
Types ¶
type Whitelist ¶
type Whitelist []WhitelistItem
func (*Whitelist) Apply ¶
Apply modifies the request data, so only whitelisted headers are preserved. It is assumed that the first line is the request line and is therefore ignored. The first byte array returned is the request line and all whitelisted headers. The second array contains the headers that are not whitelisted.
type WhitelistItem ¶
Click to show internal directories.
Click to hide internal directories.