Go: cmd/go/internal/web2 Index | Files

package web2

import "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 16 packages (graph) and is imported by 4 packages. Updated 2019-06-24. Refresh now. Tools for package owners.