Documentation ¶
Index ¶
- func SendRequest(method, url string, data interface{}, headers HTTPHeader) (err error, res []byte)
- type Full
- func (f *Full) Connect(url string, data interface{}, headers HTTPHeader) (error, []byte)
- func (f *Full) Delete(url string, data interface{}, headers HTTPHeader) (error, []byte)
- func (f *Full) Get(url string, data interface{}, headers HTTPHeader) (error, []byte)
- func (f *Full) Head(url string, data interface{}, headers HTTPHeader) (error, []byte)
- func (f *Full) Options(url string, data interface{}, headers HTTPHeader) (error, []byte)
- func (f *Full) Patch(url string, data interface{}, headers HTTPHeader) (error, []byte)
- func (f *Full) Post(url string, data interface{}, headers HTTPHeader) (error, []byte)
- func (f *Full) Put(url string, data interface{}, headers HTTPHeader) (error, []byte)
- func (f *Full) Trace(url string, data interface{}, headers HTTPHeader) (error, []byte)
- type HTTPHeader
- type Simple
- func (s *Simple) Connect(url string, data interface{}) (error, []byte)
- func (s *Simple) Delete(url string, data interface{}) (error, []byte)
- func (s *Simple) Get(url string, data interface{}) (error, []byte)
- func (s *Simple) Head(url string, data interface{}) (error, []byte)
- func (s *Simple) Options(url string, data interface{}) (error, []byte)
- func (s *Simple) Patch(url string, data interface{}) (error, []byte)
- func (s *Simple) Post(url string, data interface{}) (error, []byte)
- func (s *Simple) Put(url string, data interface{}) (error, []byte)
- func (s *Simple) Trace(url string, data interface{}) (error, []byte)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SendRequest ¶
func SendRequest(method, url string, data interface{}, headers HTTPHeader) (err error, res []byte)
Types ¶
type Full ¶
type Full struct { }
func (*Full) Connect ¶
func (f *Full) Connect(url string, data interface{}, headers HTTPHeader) (error, []byte)
func (*Full) Delete ¶
func (f *Full) Delete(url string, data interface{}, headers HTTPHeader) (error, []byte)
func (*Full) Get ¶
func (f *Full) Get(url string, data interface{}, headers HTTPHeader) (error, []byte)
func (*Full) Head ¶
func (f *Full) Head(url string, data interface{}, headers HTTPHeader) (error, []byte)
func (*Full) Options ¶
func (f *Full) Options(url string, data interface{}, headers HTTPHeader) (error, []byte)
func (*Full) Patch ¶
func (f *Full) Patch(url string, data interface{}, headers HTTPHeader) (error, []byte)
func (*Full) Post ¶
func (f *Full) Post(url string, data interface{}, headers HTTPHeader) (error, []byte)
Click to show internal directories.
Click to hide internal directories.