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 ¶
Click to show internal directories.
Click to hide internal directories.