Documentation ¶
Index ¶
- func ByteResponseBody(resp *http.Response) ([]byte, error)
- func Delete(url string, session string, data interface{}) (*http.Response, error)
- func Get(url string, session string) (*http.Response, error)
- func GetFile(url string, session string, filepath string) (*http.Response, error)
- func HEAD_AUTH_KEY() string
- func Post(url string, session string, data interface{}) (*http.Response, error)
- func PostFile(url string, session string, filepath string) (*http.Response, error)
- func Put(url string, session string, data interface{}) (*http.Response, error)
- func StringResponseBody(resp *http.Response) (string, error)
- type HttpClient
- func (s *HttpClient) Clear()
- func (s *HttpClient) Delete(uri string, data interface{}) (*http.Response, error)
- func (s *HttpClient) Get(uri string) (*http.Response, error)
- func (s *HttpClient) GetFile(uri string, filepath string) (*http.Response, error)
- func (s *HttpClient) Post(uri string, data interface{}) (*http.Response, error)
- func (s *HttpClient) PostFile(uri string, filepath string) (*http.Response, error)
- func (s *HttpClient) PostForm(uri string, data map[string]string) (*http.Response, error)
- func (s *HttpClient) Put(uri string, data interface{}) (*http.Response, error)
- func (s *HttpClient) SetHeader(key, value string) *HttpClient
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func HEAD_AUTH_KEY ¶
func HEAD_AUTH_KEY() string
Types ¶
type HttpClient ¶
func NewHttpClient ¶
func NewHttpClient() *HttpClient
func (*HttpClient) Clear ¶
func (s *HttpClient) Clear()
func (*HttpClient) Delete ¶
func (s *HttpClient) Delete(uri string, data interface{}) (*http.Response, error)
func (*HttpClient) Post ¶
func (s *HttpClient) Post(uri string, data interface{}) (*http.Response, error)
func (*HttpClient) Put ¶
func (s *HttpClient) Put(uri string, data interface{}) (*http.Response, error)
func (*HttpClient) SetHeader ¶
func (s *HttpClient) SetHeader(key, value string) *HttpClient
Click to show internal directories.
Click to hide internal directories.