transport

package
v1.2.0-alpha.5....-8a98da9 Latest Latest
Warning

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

Go to latest
Published: Jan 29, 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