Documentation
¶
Overview ¶
Package transport implements an origin-bound HTTP transport for authorized endpoint testing. It does not discover or scan targets.
Index ¶
Constants ¶
View Source
const ( DefaultMaxRequestBytes int64 = 16 << 20 DefaultMaxResponseBytes int64 = 64 << 20 )
Variables ¶
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func (*Client) CloseIdleConnections ¶
func (client *Client) CloseIdleConnections()
type NetworkMode ¶
type NetworkMode string
const ( // NetworkLocalTarget runs on the user's machine and permits the addresses // of one explicitly configured, exact-origin target. The target itself may // be loopback, private-network, or public; "local" describes the runner. NetworkLocalTarget NetworkMode = "local_target" // NetworkPublicRunner rejects non-public, link-local, multicast, and // unspecified addresses. It is intended for project-operated runners. NetworkPublicRunner NetworkMode = "public_runner" )
type RedirectPolicy ¶
type RedirectPolicy string
const ( RedirectNone RedirectPolicy = "none" RedirectSameOrigin RedirectPolicy = "same_origin" )
Click to show internal directories.
Click to hide internal directories.