handler

package
v0.0.0-...-7371108 Latest Latest
Warning

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

Go to latest
Published: Mar 8, 2023 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client interface {
	Do(req *http.Request) (*http.Response, error)
}

Client is an interface to make testing http.Client calls easier

type Handler

type Handler struct {
	ProxyClient Client
}

func (*Handler) ServeHTTP

func (h *Handler) ServeHTTP(w http.ResponseWriter, r *http.Request)

type ProxyClient

type ProxyClient struct {
	Signer              *v4.Signer
	Client              Client
	StripRequestHeaders []string
	SigningNameOverride string
	SigningHostOverride string
	HostOverride        string
	RegionOverride      string
	LogFailedRequest    bool
}

ProxyClient implements the Client interface

func (*ProxyClient) Do

func (p *ProxyClient) Do(req *http.Request) (*http.Response, error)

Jump to

Keyboard shortcuts

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