Documentation ¶
Index ¶
- type Client
- type Option
- func WithAccept(v string) Option
- func WithBody(b io.ReadCloser) Option
- func WithContentType(v string) Option
- func WithForceHTTP1() Option
- func WithForceHTTP2() Option
- func WithForceType(t string) Option
- func WithHeader(name, value string) Option
- func WithInsecure() Option
- func WithJQ(filter string) Option
- func WithLog(writer io.Writer) Option
- func WithMethod(method string) Option
- func WithOut(writer io.Writer) Option
- func WithRaw() Option
- func WithStyle(style string) Option
- func WithTrace() Option
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Option ¶
Option is a function that configures a Client.
func WithAccept ¶
WithAccept configures the request accept header value.
func WithContentType ¶
WithContentType configures the request content-type header value.
func WithForceHTTP1 ¶
func WithForceHTTP1() Option
WithForceHTTP1 set client to force using HTTP/1.1.
func WithForceType ¶
WithForceType tells client to force using given content-type for response.
func WithInsecure ¶
func WithInsecure() Option
func WithMethod ¶
WithMethod configures the method to use while doing the request.
Click to show internal directories.
Click to hide internal directories.