Documentation
¶
Index ¶
- type Client
- func (c *Client) HandleResponse(res *http.Response, keys []string, resBody interface{}) (map[string]string, error)
- func (c *Client) ProcessRequest(ctx context.Context, req *http.Request, result interface{}) error
- func (c *Client) SetupRequest(ctx context.Context, method, uri string, body io.Reader) (*http.Request, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
Client implements helper functionality for Prerecorded API
func New ¶
func New(apiKey string, options *interfaces.ClientOptions) *Client
func (*Client) HandleResponse ¶
func (c *Client) HandleResponse(res *http.Response, keys []string, resBody interface{}) (map[string]string, error)
HandleResponse processes the HTTP response for both streaming and URL-based API requests.
func (*Client) ProcessRequest ¶
ProcessRequest sends the HTTP request and processes the response.
Click to show internal directories.
Click to hide internal directories.