Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var DefaultClient = &Client{Client: http.DefaultClient}
DefaultClient is the default client.
Functions ¶
This section is empty.
Types ¶
type Client ¶
Client wraps an http.Client to accept Request instances and return Response instances.
type Request ¶
Request is an HTTP request.
func (*Request) MarshalJSON ¶
func (*Request) UnmarshalJSON ¶
type Response ¶
Response is an HTTP response.
func FromResponse ¶
FromResponse creates a Response from an http.Response.
The http.Response.Body is consumed and closed by this operation.
func (*Response) MarshalJSON ¶
func (*Response) Status ¶
func (r *Response) Status() dispatchproto.Status
Status is the status for the response.
func (*Response) UnmarshalJSON ¶
Click to show internal directories.
Click to hide internal directories.