Documentation ¶
Index ¶
- func GinReadRequestBody(c *gin.Context)
- func SendHttpRequest(method, url string, data interface{}, headers HTTPHeader) (res []byte, err error)
- type HTTPHeader
- type HttpFull
- func (f *HttpFull) Connect(url string, data interface{}, headers HTTPHeader) ([]byte, error)
- func (f *HttpFull) Delete(url string, data interface{}, headers HTTPHeader) ([]byte, error)
- func (f *HttpFull) Get(url string, data interface{}, headers HTTPHeader) ([]byte, error)
- func (f *HttpFull) Head(url string, data interface{}, headers HTTPHeader) ([]byte, error)
- func (f *HttpFull) Options(url string, data interface{}, headers HTTPHeader) ([]byte, error)
- func (f *HttpFull) Patch(url string, data interface{}, headers HTTPHeader) ([]byte, error)
- func (f *HttpFull) Post(url string, data interface{}, headers HTTPHeader) ([]byte, error)
- func (f *HttpFull) Put(url string, data interface{}, headers HTTPHeader) ([]byte, error)
- func (f *HttpFull) Trace(url string, data interface{}, headers HTTPHeader) ([]byte, error)
- type HttpSimple
- func (s *HttpSimple) Connect(url string, data interface{}) ([]byte, error)
- func (s *HttpSimple) Delete(url string, data interface{}) ([]byte, error)
- func (s *HttpSimple) Get(url string, data interface{}) ([]byte, error)
- func (s *HttpSimple) Head(url string, data interface{}) ([]byte, error)
- func (s *HttpSimple) Options(url string, data interface{}) ([]byte, error)
- func (s *HttpSimple) Patch(url string, data interface{}) ([]byte, error)
- func (s *HttpSimple) Post(url string, data interface{}) ([]byte, error)
- func (s *HttpSimple) Put(url string, data interface{}) ([]byte, error)
- func (s *HttpSimple) Trace(url string, data interface{}) ([]byte, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GinReadRequestBody ¶ added in v0.8.1
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 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)
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)
Click to show internal directories.
Click to hide internal directories.