Documentation ¶
Overview ¶
Package alwayscache is a HTTP transport to always caches the response in memory.
It's intended for testing and development, not production use.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Transport ¶
type Transport struct {
Transport http.RoundTripper
}
Transport behaves like http.RoundTripper, but will always return the body from an in-memory cache whenever possible.
func NewTransport ¶
func NewTransport() *Transport
Click to show internal directories.
Click to hide internal directories.