vgo: golang.org/x/vgo/vendor/cmd/go/internal/web2 Index | Files

package web2

import "golang.org/x/vgo/vendor/cmd/go/internal/web2"

Index

Package Files

web.go

Variables

var TraceGET = false

func CopyHeader Uses

func CopyHeader(hdr http.Header) http.Header

func Get Uses

func Get(url string, options ...Option) error

func SetHTTPDoForTesting Uses

func SetHTTPDoForTesting(do func(*http.Request) (*http.Response, error))

type Option Uses

type Option interface {
    // contains filtered or unexported methods
}

func Body Uses

func Body(body *io.ReadCloser) Option

func DecodeJSON Uses

func DecodeJSON(dst interface{}) Option
func Header(hdr *http.Header) Option

func Non200OK Uses

func Non200OK() Option

func ReadAllBody Uses

func ReadAllBody(body *[]byte) Option

Package web2 imports 14 packages (graph). Updated 2019-06-18. Refresh now. Tools for package owners.