proxy

package
v1.3.2 Latest Latest
Warning

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

Go to latest
Published: May 17, 2024 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

Functions

func NewReverseProxy

func NewReverseProxy(targetURL string, cacheManager cache.CacheManager) *httputil.ReverseProxy

NewReverseProxy creates and configures a reverse proxy.

Types

type Transport

type Transport struct {
	RoundTripper http.RoundTripper
	CacheManager cache.CacheManager
}

Transport extends the http.RoundTripper interface with caching logic.

func (*Transport) RoundTrip

func (t *Transport) RoundTrip(req *http.Request) (*http.Response, error)

RoundTrip executes a single HTTP transaction, adding caching logic.

Jump to

Keyboard shortcuts

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