webfetch

package
v0.0.0-...-c51c3df Latest Latest
Warning

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

Go to latest
Published: Nov 24, 2018 License: ISC Imports: 7 Imported by: 0

Documentation

Overview

Package webfetch is an *http.Client wrapper with caching and logging.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	Filer    *iox.Filer
	Client   *http.Client
	Logf     func(format string, v ...interface{})
	CacheGet func(ctx context.Context, dst io.Writer, url string) (found bool, contentType string, err error)
	CachePut func(ctx context.Context, url, contentType string, src io.Reader, srcLen int64) error
	// contains filtered or unexported fields
}

func (*Client) Do

func (c *Client) Do(req *http.Request) (*http.Response, error)

func (*Client) Shutdown

func (c *Client) Shutdown(ctx context.Context)

Jump to

Keyboard shortcuts

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