transport

package
v1.3.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 28, 2026 License: MIT Imports: 7 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

View Source
const ItemsKeyValueCount int = 2

ItemsKeyValueCount - Amount of items allowed in a pair key-value.

Variables

View Source
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

type LinkItem struct {
	URL    string
	Rel    string
	NoPush bool
	Params map[string]string
}

LinkItem - A URL item contained in a Link HTTP Header.

func Parse added in v1.3.1

func Parse(value string) (links []LinkItem)

Parse - Processes and extracts the URLs contained in a Link HTTP Header.

func ParseMultiple added in v1.3.1

func ParseMultiple(headers []string) []LinkItem

ParseMultiple - Processes and extracts the URLs contained in multiple Link HTTP Headers.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL