Documentation ¶
Index ¶
- func Delete[T any](url string, opts ...*RequestOptions) (data T, err error)
- func Get[T any](url string, opts ...*RequestOptions) (data T, err error)
- func Patch[T any](url string, opts ...*RequestOptions) (data T, err error)
- func Post[T any](url string, opts ...*RequestOptions) (data T, err error)
- func Put[T any](url string, opts ...*RequestOptions) (data T, err error)
- func Request[T any](method, url string, opts ...*RequestOptions) (data T, err error)
- func RequestCallback(method, url string, opts *RequestOptions, callback Callback) (err error)
- type Callback
- type Client
- type Options
- type RequestOptions
- type Response
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RequestCallback ¶ added in v2.3.6
func RequestCallback(method, url string, opts *RequestOptions, callback Callback) (err error)
Types ¶
type Client ¶
type Client[T any] interface { Get(uri string, opts ...*RequestOptions) (data T, err error) Post(uri string, opts ...*RequestOptions) (data T, err error) Patch(uri string, opts ...*RequestOptions) (data T, err error) Put(uri string, opts ...*RequestOptions) (data T, err error) Delete(uri string, opts ...*RequestOptions) (data T, err error) Request(method, uri string, opts ...*RequestOptions) (data T, err error) }
type RequestOptions ¶
Click to show internal directories.
Click to hide internal directories.