Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ApiResponse ¶
type ApiResponse struct { ApiReq *HTTPRequest ApiRes *http.Response Body []byte }
func NewApiResponse ¶
func NewApiResponse(request *HTTPRequest, response *http.Response) *ApiResponse
NewResponse Creates a new Response
func (*ApiResponse) ReadBody ¶
func (r *ApiResponse) ReadBody() ([]byte, error)
ReadBody read the response data, then return it.
func (*ApiResponse) ReadJsonBody ¶
func (r *ApiResponse) ReadJsonBody(v interface{}) error
ReadJsonBody read the response data as JSON into v.
Click to show internal directories.
Click to hide internal directories.