httpforcecache

package
v0.0.0-...-2f1e84d Latest Latest
Warning

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

Go to latest
Published: Dec 31, 2017 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	PluginConfig = &httpforcecacheConfig{
		done: make(chan struct{}),
	}
)

Config ...

Functions

This section is empty.

Types

type Transport

type Transport struct {
	Transport http.RoundTripper
	Cache     httpcache.Cache
}

func NewMemoryCacheTransport

func NewMemoryCacheTransport() *Transport

func NewTransport

func NewTransport(c httpcache.Cache) *Transport

func (*Transport) DeleteCache

func (t *Transport) DeleteCache(req *http.Request)

func (*Transport) RoundTrip

func (t *Transport) RoundTrip(req *http.Request) (resp *http.Response, err error)

Jump to

Keyboard shortcuts

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