Versions in this module Expand all Collapse all v0 v0.1.0 Jul 2, 2024 Changes in this version + var DefaultClient = &Client + type Client struct + Client *http.Client + func (c *Client) Do(ctx context.Context, r *Request) (*Response, error) + func (c *Client) Get(ctx context.Context, url string) (*Response, error) + type Request struct + Body []byte + Header http.Header + Method string + URL string + func (r *Request) MarshalJSON() ([]byte, error) + func (r *Request) UnmarshalJSON(b []byte) error + type Response struct + Body []byte + Header http.Header + StatusCode int + func FromResponse(r *http.Response) (*Response, error) + func Get(ctx context.Context, url string) (*Response, error) + func (r *Response) MarshalJSON() ([]byte, error) + func (r *Response) Status() dispatchproto.Status + func (r *Response) UnmarshalJSON(b []byte) error