forwarder

package
v1.0.0-beta.5 Latest Latest
Warning

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

Go to latest
Published: Sep 22, 2023 License: GPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Forwarder

type Forwarder struct {
	// contains filtered or unexported fields
}

func New

func New(client *http.Client) *Forwarder

func (*Forwarder) Forward

func (f *Forwarder) Forward(req *http.Request, opts *Opts) (*http.Response, error)

type Opts

type Opts struct {
	TargetURL url.URL
	Headers   http.Header
	Query     url.Values
}

Jump to

Keyboard shortcuts

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