httpproxy

package
v0.0.0-...-602fb03 Latest Latest
Warning

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

Go to latest
Published: Nov 12, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SetXForwarded

func SetXForwarded(r *httputil.ProxyRequest)

SetXForwarded is a extend version of ProxyRequest{}.SetXForwarded(

Types

type Client

type Client struct {
	Server     *url.URL // server address
	HttpClient *http.Client
}

func (Client) RoundTrip

func (h Client) RoundTrip(r *http.Request) (*http.Response, error)

type Server

type Server struct {
	Prefix string // prefix path
}

func (*Server) ServeHTTP

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

Jump to

Keyboard shortcuts

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