Documentation ¶
Index ¶
- type Option
- func Body(body interface{}) Option
- func ContentType(contentType string) Option
- func Header(name, value string) Option
- func HttpHeader(header http.Header) Option
- func MapHeader(header map[string]string) Option
- func MapQuery(values map[string]interface{}) Option
- func PathVar(key string, value interface{}) Option
- func Query(name, value string) Option
- func QueryValues(values url.Values) Option
- func Timeout(t time.Duration) Option
- type Request
- type Response
- func Delete(url string, options ...Option) (*Response, error)
- func Get(url string, options ...Option) (*Response, error)
- func Options(url string, options ...Option) (*Response, error)
- func Patch(url string, options ...Option) (*Response, error)
- func Post(url string, options ...Option) (*Response, error)
- func Put(url string, options ...Option) (*Response, error)
- func Trace(url string, options ...Option) (*Response, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Option ¶ added in v1.3.7
func ContentType ¶ added in v1.3.7
func HttpHeader ¶ added in v1.4.1
func QueryValues ¶ added in v1.4.1
type Request ¶ added in v1.3.7
type Request struct { Method string URL *url.URL Body interface{} BodyReader io.Reader Param url.Values Header http.Header Timeout time.Duration }
func NewRequest ¶ added in v1.4.1
func (*Request) WithOption ¶ added in v1.4.1
Click to show internal directories.
Click to hide internal directories.