Documentation ¶
Index ¶
- type HTTPResponse
- func (h *HTTPResponse) CloseBody()
- func (h *HTTPResponse) ErrorByStatusCode() error
- func (h *HTTPResponse) GetBody() ([]byte, error)
- func (h *HTTPResponse) GetContentType() string
- func (h *HTTPResponse) GetResponse() *http.Response
- func (h *HTTPResponse) GetStatusCode() int
- func (h *HTTPResponse) GetStatusCodeString() string
- type Interface
- type Mock
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type HTTPResponse ¶
type HTTPResponse struct {
// contains filtered or unexported fields
}
func (*HTTPResponse) CloseBody ¶ added in v1.3.0
func (h *HTTPResponse) CloseBody()
func (*HTTPResponse) ErrorByStatusCode ¶
func (h *HTTPResponse) ErrorByStatusCode() error
func (*HTTPResponse) GetBody ¶
func (h *HTTPResponse) GetBody() ([]byte, error)
func (*HTTPResponse) GetContentType ¶
func (h *HTTPResponse) GetContentType() string
func (*HTTPResponse) GetResponse ¶
func (h *HTTPResponse) GetResponse() *http.Response
func (*HTTPResponse) GetStatusCode ¶
func (h *HTTPResponse) GetStatusCode() int
func (*HTTPResponse) GetStatusCodeString ¶
func (h *HTTPResponse) GetStatusCodeString() string
type Interface ¶
type Interface interface { ErrorByStatusCode() error GetBody() ([]byte, error) GetResponse() *http.Response GetStatusCode() int GetStatusCodeString() string GetContentType() string CloseBody() }
func NewHTTPResponse ¶
type Mock ¶
func (*Mock) ErrorByStatusCode ¶
func (*Mock) GetContentType ¶
func (*Mock) GetResponse ¶
func (*Mock) GetStatusCode ¶
func (*Mock) GetStatusCodeString ¶
Click to show internal directories.
Click to hide internal directories.