transport

package
v1.10.2 Latest Latest
Warning

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

Go to latest
Published: Apr 26, 2018 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Overview

Package transport provides a round tripper capable of caching HTTP responses.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewCacheRoundTripper

func NewCacheRoundTripper(cacheDir string, rt http.RoundTripper) http.RoundTripper

NewCacheRoundTripper creates a roundtripper that reads the ETag on response headers and send the If-None-Match header on subsequent corresponding requests.

Types

This section is empty.

Jump to

Keyboard shortcuts

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