Documentation
¶
Index ¶
- func SetBaseURL(baseURL string)
- type Client
- type Promise
- func DeleteAsync(urlStr string, options ...*requestOptions) *Promise
- func GetAsync(urlStr string, options ...*requestOptions) *Promise
- func HeadAsync(urlStr string, options ...*requestOptions) *Promise
- func NewPromise() *Promise
- func OptionsAsync(urlStr string, options ...*requestOptions) *Promise
- func PatchAsync(urlStr string, body interface{}, options ...*requestOptions) *Promise
- func PostAsync(urlStr string, body interface{}, options ...*requestOptions) *Promise
- func PutAsync(urlStr string, body interface{}, options ...*requestOptions) *Promise
- func RequestAsync(method, urlStr string, options ...*requestOptions) *Promise
- type Response
- func Delete(urlStr string, options ...*requestOptions) (*Response, error)
- func Get(urlStr string, options ...*requestOptions) (*Response, error)
- func Head(urlStr string, options ...*requestOptions) (*Response, error)
- func Options(urlStr string, options ...*requestOptions) (*Response, error)
- func Patch(urlStr string, body interface{}, options ...*requestOptions) (*Response, error)
- func Post(urlStr string, body interface{}, options ...*requestOptions) (*Response, error)
- func Put(urlStr string, body interface{}, options ...*requestOptions) (*Response, error)
- func Request(method, urlStr string, options ...*requestOptions) (*Response, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Client ¶
type Promise ¶
type Promise struct {
// contains filtered or unexported fields
}
func PatchAsync ¶
func PostAsync ¶
Source Files
¶
- client.go
Click to show internal directories.
Click to hide internal directories.