httpproxy

package
v0.2.11 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewHttpServer

func NewHttpServer(cacheCfg config.CacheConfig, proxyCfg config.HttpCachingProxyConfig) (*http.Server, error)

Creates a http.Server that proxies all requests to the target URL. The server caches all responses in a persisted key-value store, located in an autogenerated subdirectory of the cache root dir.

Types

type CacheableResponse

type CacheableResponse struct {
	StatusCode int
	Header     http.Header
	Body       []byte
}

Jump to

Keyboard shortcuts

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