proxy

package
v1.11.0 Latest Latest
Warning

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

Go to latest
Published: Sep 21, 2024 License: MIT Imports: 3 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type HostRewriter

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

func NewHostRewriter

func NewHostRewriter(host string, next http.RoundTripper, logger Logger) HostRewriter

func (HostRewriter) RoundTrip

func (rt HostRewriter) RoundTrip(req *http.Request) (*http.Response, error)

type Logger

type Logger func(s string)

Jump to

Keyboard shortcuts

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