Documentation
¶
Index ¶
Constants ¶
const ItemsKeyValueCount int = 2
ItemsKeyValueCount - Amount of items allowed in a pair key-value.
Variables ¶
var HopHeaders = []string{
"Connection",
"Proxy-Connection",
"Keep-Alive",
"Proxy-Authenticate",
"Proxy-Authorization",
"Te",
"Trailer",
"Transfer-Encoding",
"Upgrade",
}
HopHeaders - List of Ho-by-hop headers. Hop-by-hop headers. These are removed when sent to the backend. As of RFC 7230, hop-by-hop headers are required to appear in the Connection header field. These are the headers defined by the obsoleted RFC 2616 (section 13.5.1) and are used for backward compatibility.
Functions ¶
func PushProxiedResources ¶ added in v1.3.1
func PushProxiedResources(lwr *response.LoggedResponseWriter, uriobj *cache.URIObj)
PushProxiedResources - Start HTTP/2 Push of the resources needed. @deprecated
func ServeCachedResponse ¶
func ServeCachedResponse(ctx context.Context, lwr *response.LoggedResponseWriter, uriobj cache.URIObj)
ServeCachedResponse - Serve a cached response.
Types ¶
type LinkItem ¶ added in v1.3.1
LinkItem - A URL item contained in a Link HTTP Header.
func Parse ¶ added in v1.3.1
Parse - Processes and extracts the URLs contained in a Link HTTP Header.
func ParseMultiple ¶ added in v1.3.1
ParseMultiple - Processes and extracts the URLs contained in multiple Link HTTP Headers.