package web2
import "cmd/go/internal/web2"
Index ¶
- Variables
- func CopyHeader(hdr http.Header) http.Header
- func Get(url string, options ...Option) error
- func SetHTTPDoForTesting(do func(*http.Request) (*http.Response, error))
- type Option
Variables ¶
var TraceGET = false
Functions ¶
func CopyHeader ¶
func Get ¶
func SetHTTPDoForTesting ¶
Types ¶
type Option ¶
type Option interface {
// contains filtered or unexported methods
}
func Body ¶
func Body(body *io.ReadCloser) Option
func DecodeJSON ¶
func DecodeJSON(dst interface{}) Option
func Header ¶
func Non200OK ¶
func Non200OK() Option
func ReadAllBody ¶
Source Files ¶
- Version
- v1.11.13
- Published
- Aug 13, 2019
- Platform
- linux/amd64
- Imports
- 14 packages
- Last checked
- 11 seconds ago –
Tools for package owners.