Documentation
¶
Index ¶
- Variables
- type IResponse
- type SResponse
- func (p *SResponse) GetBody() []byte
- func (p *SResponse) GetCode() int
- func (p *SResponse) GetHead() map[string]string
- func (p *SResponse) ToBytes() []byte
- func (p *SResponse) ToString() string
- func (p *SResponse) WithBody(pBody []byte) IResponse
- func (p *SResponse) WithCode(pCode int) IResponse
- func (p *SResponse) WithHead(pHead map[string]string) IResponse
- type SResponseBlock
- type SResponseError
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrLoadBytesJoiner = &SResponseError{"load bytes joiner"} ErrDecodeResponse = &SResponseError{"decode response"} ErrUnknownType = &SResponseError{"unknown type"} )
Functions ¶
This section is empty.
Types ¶
type IResponse ¶
type IResponse interface { types.IConverter WithCode(pCode int) IResponse WithHead(map[string]string) IResponse WithBody(pBody []byte) IResponse GetCode() int GetHead() map[string]string GetBody() []byte }
func LoadResponse ¶
func NewResponse ¶
func NewResponse() IResponse
type SResponse ¶
type SResponse struct { SResponseBlock FBody []byte `json:"body"` }
type SResponseBlock ¶
type SResponseError ¶
type SResponseError struct {
// contains filtered or unexported fields
}
func (*SResponseError) Error ¶
func (err *SResponseError) Error() string
Click to show internal directories.
Click to hide internal directories.