Documentation ¶
Index ¶
- func Delete(path string, handler content.Handler)
- func Get(path string, handler content.Handler)
- func Head(path string, handler content.Handler)
- func NewClient(opts ...ClientOption) *resty.Client
- func Options(path string, handler content.Handler)
- func Patch(path string, handler content.Handler)
- func Post(path string, handler content.Handler)
- func Put(path string, handler content.Handler)
- func Register(mu *http.ServeMux, ct *content.Content)
- func Route(path string, handler content.Handler)
- type ClientOption
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewClient ¶ added in v1.315.0
func NewClient(opts ...ClientOption) *resty.Client
NewClient for rest.
Types ¶
type ClientOption ¶ added in v1.315.0
type ClientOption interface {
// contains filtered or unexported methods
}
ClientOption for rest.
func WithClientRoundTripper ¶ added in v1.315.0
func WithClientRoundTripper(rt http.RoundTripper) ClientOption
WithSenderRoundTripper for rest.
func WithClientTimeout ¶ added in v1.315.0
func WithClientTimeout(timeout string) ClientOption
WithClientTimeout for rest.
Click to show internal directories.
Click to hide internal directories.