Documentation
¶
Index ¶
- Variables
- type IRequest
- type SRequest
- func (p *SRequest) GetBody() []byte
- func (p *SRequest) GetHead() map[string]string
- func (p *SRequest) GetHost() string
- func (p *SRequest) GetMethod() string
- func (p *SRequest) GetPath() string
- func (p *SRequest) ToBytes() []byte
- func (p *SRequest) ToString() string
- func (p *SRequest) WithBody(pBody []byte) IRequest
- func (p *SRequest) WithHead(pHead map[string]string) IRequest
- type SRequestBlock
- type SRequestError
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrLoadBytesJoiner = &SRequestError{"load bytes joiner"} ErrDecodeRequest = &SRequestError{"decode request"} ErrUnknownType = &SRequestError{"unknown type"} )
Functions ¶
This section is empty.
Types ¶
type IRequest ¶
type IRequest interface { types.IConverter WithHead(map[string]string) IRequest WithBody([]byte) IRequest GetMethod() string GetHost() string GetPath() string GetHead() map[string]string GetBody() []byte }
func LoadRequest ¶
func NewRequest ¶
type SRequest ¶
type SRequest struct { SRequestBlock FBody []byte `json:"body"` }
type SRequestBlock ¶
type SRequestError ¶
type SRequestError struct {
// contains filtered or unexported fields
}
func (*SRequestError) Error ¶
func (err *SRequestError) Error() string
Click to show internal directories.
Click to hide internal directories.