Registry / http-client / victorspringer-http-cache

victorspringer-http-cache

JSON →
library0.0.0-20240105202711-747df1b7981cgogounverified

A Go library for caching HTTP responses with support for various storage backends.

go get github.com/victorspringer/http-cache
INSTALL
IMPORT
SIG · VICTORSPRINGER-HTT
V
victorspringer-http-cache
http-clientgov0.0.0-20240105202711-747df1b7981c
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

httpcache
github.com/victorspringer/http-cache

Creates an HTTP client with in-memory caching.

package main import ( "net/http" "github.com/victorspringer/http-cache" ) func main() { cacheClient, _ := httpcache.NewClient(httpcache.WithCache(httpcache.NewMemoryCache())) resp, _ := cacheClient.Get("https://example.com") defer resp.Body.Close() }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
0.0.0-20240105202711-747df1b7981clatest on pkg.go.dev
Audit
Dependencies

No dependency data recorded yet.

Agent activity
23 hits · last 30 days
node
18
Resources
victorspringer-http-cache — go get victorspringer-http-cache · libregistry