http

package
v0.18.0 Latest Latest
Warning

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

Go to latest
Published: Mar 16, 2019 License: GPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewRequest

func NewRequest(method, url string, body io.Reader) (*gohttp.Request, error)

NewRequest creates a new HTTP Request

Types

type Client

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

Client is an interface for HTTP Client

type DefaultClient

type DefaultClient struct {
}

DefaultClient is the default HTTP Client

func NewClient

func NewClient() *DefaultClient

NewClient creates a new defaultClient

func (*DefaultClient) Do

func (client *DefaultClient) Do(req *http.Request) (*http.Response, error)

Do sends the request using http.DefaultClient

Jump to

Keyboard shortcuts

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