Documentation ¶
Index ¶
- Constants
- Variables
- func Adapter(request *source.Request) *source.Request
- func AddPassThroughHeader(header string)
- func Builder(optionYaml []byte) (source.ResourceClient, source.RequestAdapter, []source.Hook, error)
- func NewHTTPSourceClient(opts ...HTTPSourceClientOption) source.ResourceClient
- type HTTPSourceClientOption
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 AddPassThroughHeader ¶
func AddPassThroughHeader(header string)
func Builder ¶
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
Click to show internal directories.
Click to hide internal directories.