httpcache

package
v0.3.4 Latest Latest
Warning

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

Go to latest
Published: May 22, 2021 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewClient

func NewClient() *http.Client

NewClient creates a new *http.Client which caches http responses on disk so that certain operations can be performed without an active internet connection if there's at least a stale cached response for an http request.

func NewClientWithCache

func NewClientWithCache(cache httpcache.Cache) *http.Client

NewClientWithCache creates a new *http.Client which uses cache for response caching.

Types

This section is empty.

Jump to

Keyboard shortcuts

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