Documentation
      ¶
    
    
  
    
  
    Overview ¶
Package request is used for internal. You should not depend on it directly, breaking changes can and will be introducted to it.
Index ¶
- type CommonResponse
 - func (resp *CommonResponse) GetHTTPContentBytes() []byte
 - func (resp *CommonResponse) GetHTTPContentString() string
 - func (resp *CommonResponse) GetHTTPHeaders() map[string][]string
 - func (resp *CommonResponse) GetHTTPStatus() int
 - func (resp *CommonResponse) ParseFromHTTPResponse(httpResponse *http.Response) (err error)
 
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CommonResponse ¶
type CommonResponse struct {
	// contains filtered or unexported fields
}
    CommonResponse is for storing message of httpResponse
func (*CommonResponse) GetHTTPContentBytes ¶
func (resp *CommonResponse) GetHTTPContentBytes() []byte
GetHTTPContentBytes return body content as []byte
func (*CommonResponse) GetHTTPContentString ¶
func (resp *CommonResponse) GetHTTPContentString() string
GetHTTPContentString return body content as string
func (*CommonResponse) GetHTTPHeaders ¶
func (resp *CommonResponse) GetHTTPHeaders() map[string][]string
GetHTTPHeaders returns httpresponse's headers
func (*CommonResponse) GetHTTPStatus ¶
func (resp *CommonResponse) GetHTTPStatus() int
GetHTTPStatus returns httpStatus
func (*CommonResponse) ParseFromHTTPResponse ¶
func (resp *CommonResponse) ParseFromHTTPResponse(httpResponse *http.Response) (err error)
ParseFromHTTPResponse assigns for CommonResponse, returns err when body is too large.
 Click to show internal directories. 
   Click to hide internal directories.