http

package
v0.58.1-0...-af594cf Latest Latest
Warning

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

Go to latest
Published: May 1, 2020 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func LimitHTTPBody

func LimitHTTPBody(client http.Client, size int64) *http.Client

func NewDefaultClient

func NewDefaultClient() *http.Client

NewDefaultClient creates a client with sane defaults.

func NewLimitedDefaultClient

func NewLimitedDefaultClient() *http.Client

NewLimitedDefaultClient creates a client with a limit on the response body size.

Types

type Client

type Client interface {
	Do(*http.Request) (*http.Response, error)
}

Jump to

Keyboard shortcuts

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