httpweb

package
v0.0.11 Latest Latest
Warning

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

Go to latest
Published: Jul 26, 2024 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AddHeaderTransport

type AddHeaderTransport struct {
	T http.RoundTripper
	// contains filtered or unexported fields
}

func NewAddHeaderTransport

func NewAddHeaderTransport(T http.RoundTripper, mobile bool) *AddHeaderTransport

func (*AddHeaderTransport) RoundTrip

func (adt *AddHeaderTransport) RoundTrip(req *http.Request) (*http.Response, error)

type HTTPWebForwarder

type HTTPWebForwarder struct {
	Client *http.Client
}

func NewHTTPWebForwarder

func NewHTTPWebForwarder(proxy *url.URL, mobile bool) *HTTPWebForwarder

func (*HTTPWebForwarder) Forward

func (h *HTTPWebForwarder) Forward(ctx *gin.Context, headers http.Header, u string, depth int) error

Jump to

Keyboard shortcuts

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