Documentation ¶ Overview ¶ Package mbhttp provides helpers common across all SDKs. Index ¶ type Client func New(boxname string, client *http.Client) *Client func (c *Client) DoUnmarshal(req *http.Request, v interface{}) (*http.Response, error) Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ This section is empty. Types ¶ type Client ¶ type Client struct { // HTTPClient is the underlying http.Client that will be // used to make requests. HTTPClient *http.Client // contains filtered or unexported fields } Client makes requests and handles common Machine Box error cases. func New ¶ func New(boxname string, client *http.Client) *Client New makes a new Client. func (*Client) DoUnmarshal ¶ added in v0.3.1 func (c *Client) DoUnmarshal(req *http.Request, v interface{}) (*http.Response, error) DoUnmarshal makes the request and unmarshals the response into v. The Body in the Response will be closed after calling this method. Source Files ¶ View all Source files client.go Click to show internal directories. Click to hide internal directories.