http

package
v1.0.6 Latest Latest
Warning

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

Go to latest
Published: Jan 21, 2020 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Body

type Body struct {
	io.Reader
	// contains filtered or unexported fields
}

func (*Body) Append

func (b *Body) Append(c io.Closer)

func (*Body) Close

func (b *Body) Close() error

type HTTPFactory

type HTTPFactory struct {
	// contains filtered or unexported fields
}

func NewHTTPFactory

func NewHTTPFactory(driver vmnet.NetDriver) *HTTPFactory

func (*HTTPFactory) Delete

func (f *HTTPFactory) Delete(rawurl string) (*http.Response, error)

func (*HTTPFactory) Do

func (f *HTTPFactory) Do(r *Request) (*http.Response, error)

func (*HTTPFactory) Get

func (f *HTTPFactory) Get(rawurl string) (*http.Response, error)

func (*HTTPFactory) GetBuffer

func (f *HTTPFactory) GetBuffer(rawurl string) (base.Buffer, error)

func (*HTTPFactory) GetString

func (f *HTTPFactory) GetString(rawurl string) (string, error)

func (*HTTPFactory) Head

func (f *HTTPFactory) Head(rawurl string) (*http.Response, error)

func (*HTTPFactory) Post

func (f *HTTPFactory) Post(rawurl, contentType string, body io.Reader) (*http.Response, error)

func (*HTTPFactory) PostBuffer

func (f *HTTPFactory) PostBuffer(rawurl string, values base.Buffer, args ...string) (*http.Response, error)

func (*HTTPFactory) PostForm

func (f *HTTPFactory) PostForm(rawurl string, values url.Values, args ...string) (*http.Response, error)

func (*HTTPFactory) PostJson

func (f *HTTPFactory) PostJson(rawurl string, values interface{}, args ...string) (*http.Response, error)

func (*HTTPFactory) PostString

func (f *HTTPFactory) PostString(rawurl string, values string, args ...string) (*http.Response, error)

func (*HTTPFactory) Put

func (f *HTTPFactory) Put(rawurl string) (*http.Response, error)

type Request

type Request struct {
	Method string
	Url    string
	Type   string
	Header map[string]string
	Query  map[string]string
	Cookie map[string]string
	Body   io.Reader
}

Jump to

Keyboard shortcuts

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