web

package
v0.5.5 Latest Latest
Warning

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

Go to latest
Published: May 3, 2021 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SendRequest

func SendRequest(method, url string, data interface{}, headers HTTPHeader) (res []byte, err error)

Types

type Full

type Full struct {
}

func (*Full) Connect

func (f *Full) Connect(url string, data interface{}, headers HTTPHeader) ([]byte, error)

func (*Full) Delete

func (f *Full) Delete(url string, data interface{}, headers HTTPHeader) ([]byte, error)

func (*Full) Get

func (f *Full) Get(url string, data interface{}, headers HTTPHeader) ([]byte, error)

func (*Full) Head

func (f *Full) Head(url string, data interface{}, headers HTTPHeader) ([]byte, error)

func (*Full) Options

func (f *Full) Options(url string, data interface{}, headers HTTPHeader) ([]byte, error)

func (*Full) Patch

func (f *Full) Patch(url string, data interface{}, headers HTTPHeader) ([]byte, error)

func (*Full) Post

func (f *Full) Post(url string, data interface{}, headers HTTPHeader) ([]byte, error)

func (*Full) Put

func (f *Full) Put(url string, data interface{}, headers HTTPHeader) ([]byte, error)

func (*Full) Trace

func (f *Full) Trace(url string, data interface{}, headers HTTPHeader) ([]byte, error)

type HTTPHeader

type HTTPHeader map[string]string
var (
	HTTPEmptyHeader HTTPHeader
)

type Simple

type Simple struct {
}

func (*Simple) Connect

func (s *Simple) Connect(url string, data interface{}) ([]byte, error)

func (*Simple) Delete

func (s *Simple) Delete(url string, data interface{}) ([]byte, error)

func (*Simple) Get

func (s *Simple) Get(url string, data interface{}) ([]byte, error)

func (*Simple) Head

func (s *Simple) Head(url string, data interface{}) ([]byte, error)

func (*Simple) Options

func (s *Simple) Options(url string, data interface{}) ([]byte, error)

func (*Simple) Patch

func (s *Simple) Patch(url string, data interface{}) ([]byte, error)

func (*Simple) Post

func (s *Simple) Post(url string, data interface{}) ([]byte, error)

func (*Simple) Put

func (s *Simple) Put(url string, data interface{}) ([]byte, error)

func (*Simple) Trace

func (s *Simple) Trace(url string, data interface{}) ([]byte, error)

Jump to

Keyboard shortcuts

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