web

package
v0.8.1 Latest Latest
Warning

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

Go to latest
Published: Feb 22, 2023 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GinReadRequestBody added in v0.8.1

func GinReadRequestBody(c *gin.Context)

Print the request data of gin,

func SendHttpRequest added in v0.8.1

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

Types

type HTTPHeader

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

type HttpFull added in v0.8.1

type HttpFull struct{}

func (*HttpFull) Connect added in v0.8.1

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

func (*HttpFull) Delete added in v0.8.1

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

func (*HttpFull) Get added in v0.8.1

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

func (*HttpFull) Head added in v0.8.1

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

func (*HttpFull) Options added in v0.8.1

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

func (*HttpFull) Patch added in v0.8.1

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

func (*HttpFull) Post added in v0.8.1

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

func (*HttpFull) Put added in v0.8.1

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

func (*HttpFull) Trace added in v0.8.1

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

type HttpSimple added in v0.8.1

type HttpSimple struct{}

func (*HttpSimple) Connect added in v0.8.1

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

func (*HttpSimple) Delete added in v0.8.1

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

func (*HttpSimple) Get added in v0.8.1

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

func (*HttpSimple) Head added in v0.8.1

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

func (*HttpSimple) Options added in v0.8.1

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

func (*HttpSimple) Patch added in v0.8.1

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

func (*HttpSimple) Post added in v0.8.1

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

func (*HttpSimple) Put added in v0.8.1

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

func (*HttpSimple) Trace added in v0.8.1

func (s *HttpSimple) 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