Versions in this module Expand all Collapse all v0 v0.5.5 May 3, 2021 Changes in this version + func SendRequest(method, url string, data interface{}, headers HTTPHeader) (res []byte, err error) + type Full struct + func (f *Full) Connect(url string, data interface{}, headers HTTPHeader) ([]byte, error) + func (f *Full) Delete(url string, data interface{}, headers HTTPHeader) ([]byte, error) + func (f *Full) Get(url string, data interface{}, headers HTTPHeader) ([]byte, error) + func (f *Full) Head(url string, data interface{}, headers HTTPHeader) ([]byte, error) + func (f *Full) Options(url string, data interface{}, headers HTTPHeader) ([]byte, error) + func (f *Full) Patch(url string, data interface{}, headers HTTPHeader) ([]byte, error) + func (f *Full) Post(url string, data interface{}, headers HTTPHeader) ([]byte, error) + func (f *Full) Put(url string, data interface{}, headers HTTPHeader) ([]byte, error) + func (f *Full) Trace(url string, data interface{}, headers HTTPHeader) ([]byte, error) + type HTTPHeader map[string]string + var HTTPEmptyHeader HTTPHeader + type Simple struct + func (s *Simple) Connect(url string, data interface{}) ([]byte, error) + func (s *Simple) Delete(url string, data interface{}) ([]byte, error) + func (s *Simple) Get(url string, data interface{}) ([]byte, error) + func (s *Simple) Head(url string, data interface{}) ([]byte, error) + func (s *Simple) Options(url string, data interface{}) ([]byte, error) + func (s *Simple) Patch(url string, data interface{}) ([]byte, error) + func (s *Simple) Post(url string, data interface{}) ([]byte, error) + func (s *Simple) Put(url string, data interface{}) ([]byte, error) + func (s *Simple) Trace(url string, data interface{}) ([]byte, error)