http

package
v1.7.0 Latest Latest
Warning

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

Go to latest
Published: Jun 13, 2023 License: GPL-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Get

func Get(url string, ctx Context) (resp *http.Response, cancel ctxt.CancelFunc, err error)

Types

type Context added in v0.4.0

type Context struct {
	Timeout    int
	DisableTLS bool
}

func (Context) StdContext added in v1.5.0

func (ctx Context) StdContext() (ctxt.Context, ctxt.CancelFunc)

type Error

type Error struct {
	StatusCode int
	Status     string
}

Error represents an HTTP error returned by a server.

func (Error) Error

func (err Error) Error() string

Jump to

Keyboard shortcuts

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