Documentation
¶
Index ¶
- type Caller
- func (s *Caller) Client() *HttpRequest
- func (s *Caller) Delete(path string, inputValue interface{}, outputRef interface{}) ([]byte, *httpclient.Response, error)
- func (s *Caller) Get(path string, inputValue interface{}, outputRef interface{}) ([]byte, *httpclient.Response, error)
- func (s *Caller) Patch(path string, inputValue interface{}, outputRef interface{}) ([]byte, *httpclient.Response, error)
- func (s *Caller) Post(path string, inputValue interface{}, outputRef interface{}) ([]byte, *httpclient.Response, error)
- func (s *Caller) PostForm(path string, inputValue interface{}, outputRef interface{}) ([]byte, *httpclient.Response, error)
- func (s *Caller) Put(path string, inputValue interface{}, outputRef interface{}) ([]byte, *httpclient.Response, error)
- func (s *Caller) SetBearer(bearer string)
- type HttpRequest
- type PostFile
- type Resty
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Caller ¶
type Caller struct {
// contains filtered or unexported fields
}
func (*Caller) Client ¶
func (s *Caller) Client() *HttpRequest
type HttpRequest ¶
type HttpRequest struct {
*httpclient.HttpClient
// contains filtered or unexported fields
}
func NewHttpRequest ¶
func NewHttpRequest(headers, cookies map[string]string, options map[int]interface{}) *HttpRequest
func (*HttpRequest) Call ¶
func (s *HttpRequest) Call(method string, url string, value interface{}, headers map[string]string) (*httpclient.Response, error)
func (*HttpRequest) GetJsoniter ¶
func (s *HttpRequest) GetJsoniter() jsoniter.API
func (*HttpRequest) PostFile ¶
func (s *HttpRequest) PostFile(url string, form map[string]string, files []PostFile) (*httpclient.Response, error)
PostFile PostFile.Content will not close after PostFile
Click to show internal directories.
Click to hide internal directories.