Registry / http-client / gregjones-httpcache

gregjones-httpcache

JSON →
library0.0.0-20190611155906-901d90724c79gogounverified

Package httpcache provides a http.RoundTripper implementation that works as a mostly RFC-compliant cache for http responses.

go get github.com/gregjones/httpcache
INSTALL
IMPORT
SIG · GREGJONES-HTTPCACH
G
gregjones-httpcache
http-clientgov0.0.0-20190611155906-901d90724c79
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/gregjones/httpcache

Create an HTTP client with in-memory caching.

package main import ( "fmt" "net/http" "github.com/gregjones/httpcache" ) func main() { transport := httpcache.NewMemoryCacheTransport() client := &http.Client{Transport: transport} resp, _ := client.Get("https://example.com") fmt.Println(resp.Status) }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
0.0.0-20190611155906-901d90724c79latest on pkg.go.dev
Audit
Dependencies

No dependency data recorded yet.

Agent activity
22 hits · last 30 days
node
20
Resources
gregjones-httpcache — go get gregjones-httpcache · libregistry