Documentation ¶
Index ¶
- Variables
- func Delete(path string, handler content.Handler)
- func Get(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, p *sync.BufferPool)
- func Route(path string, handler content.Handler)
- type Client
- type ClientOption
Constants ¶
This section is empty.
Variables ¶
View Source
var NoRequest maps.StringAny = nil
NoRequest to use for the client.
Functions ¶
Types ¶
type Client ¶ added in v1.315.0
type Client struct {
// contains filtered or unexported fields
}
Client for rest.
type ClientOption ¶ added in v1.315.0
type ClientOption interface {
// contains filtered or unexported methods
}
ClientOption for rest.
func WithClientContentType ¶ added in v1.315.0
func WithClientContentType(ct string) ClientOption
WithClientContentType 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.