httpprotocol

package
v2.1.43 Latest Latest
Warning

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

Go to latest
Published: Apr 24, 2024 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const (
	HTTPClient  = "http"
	HTTPSClient = "https"
)

Variables

View Source
var PassThroughHeaders = map[string]struct{}{

	headers.Authorization:   {},
	headers.ContentType:     {},
	headers.ContentEncoding: {},
	headers.WWWAuthenticate: {},
}

Functions

func Adapter

func Adapter(request *source.Request) *source.Request

func AddPassThroughHeader

func AddPassThroughHeader(header string)

func Builder added in v2.0.9

func Builder(optionYaml []byte) (source.ResourceClient, source.RequestAdapter, []source.Hook, error)

func NewHTTPSourceClient

func NewHTTPSourceClient(opts ...HTTPSourceClientOption) source.ResourceClient

NewHTTPSourceClient returns a new HTTPSourceClientOption.

Types

type HTTPSourceClientOption

type HTTPSourceClientOption func(p *httpSourceClient)

func WithHTTPClient

func WithHTTPClient(client *http.Client) HTTPSourceClientOption

Jump to

Keyboard shortcuts

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