Documentation ¶
Index ¶
- type FakeRequest
- func (f FakeRequest) Accepts() []byte
- func (f FakeRequest) Authorization() []byte
- func (f FakeRequest) BearerToken() ([]byte, error)
- func (f FakeRequest) Context() context.Context
- func (f FakeRequest) ExceptsJson() bool
- func (f FakeRequest) File(key string) (contracts.UploadFile, error)
- func (f FakeRequest) Get(key string) []byte
- func (f FakeRequest) GetClientIp() string
- func (f FakeRequest) GetContent() []byte
- func (f FakeRequest) GetInt(key string) (int, error)
- func (f FakeRequest) GetInt64(key string) (int64, error)
- func (f FakeRequest) GetMethod() string
- func (f FakeRequest) GetPathBytes() []byte
- func (f FakeRequest) GetSignature() []byte
- func (f FakeRequest) GetString(key string) string
- func (f FakeRequest) GetURL() *url.URL
- func (f FakeRequest) GetUint64(key string) (uint64, error)
- func (f FakeRequest) GetUri() []byte
- func (f FakeRequest) GetValue(key ...string) contracts.InputValue
- func (f FakeRequest) Header(key string) []byte
- func (f FakeRequest) HeaderString(key string) string
- func (f FakeRequest) IsXmlHttpRequest() bool
- func (f FakeRequest) RemoteAddr() string
- func (f FakeRequest) RequestWithJson() bool
- func (f FakeRequest) SetHeader(key string, value []byte) contracts.RequestContract
- func (f FakeRequest) SetHeaderString(key, value string) contracts.RequestContract
- func (f FakeRequest) ToString() string
- func (f FakeRequest) Unmarshal(to interface{}) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FakeRequest ¶
func NewRequest ¶
func NewRequest(method, path string) *FakeRequest
func (FakeRequest) Accepts ¶
func (f FakeRequest) Accepts() []byte
func (FakeRequest) Authorization ¶
func (f FakeRequest) Authorization() []byte
func (FakeRequest) BearerToken ¶
func (f FakeRequest) BearerToken() ([]byte, error)
func (FakeRequest) Context ¶
func (f FakeRequest) Context() context.Context
func (FakeRequest) ExceptsJson ¶
func (f FakeRequest) ExceptsJson() bool
func (FakeRequest) File ¶
func (f FakeRequest) File(key string) (contracts.UploadFile, error)
func (FakeRequest) Get ¶
func (f FakeRequest) Get(key string) []byte
func (FakeRequest) GetClientIp ¶
func (f FakeRequest) GetClientIp() string
func (FakeRequest) GetContent ¶
func (f FakeRequest) GetContent() []byte
func (FakeRequest) GetMethod ¶
func (f FakeRequest) GetMethod() string
func (FakeRequest) GetPathBytes ¶
func (f FakeRequest) GetPathBytes() []byte
func (FakeRequest) GetSignature ¶
func (f FakeRequest) GetSignature() []byte
func (FakeRequest) GetString ¶
func (f FakeRequest) GetString(key string) string
func (FakeRequest) GetURL ¶ added in v1.1.2
func (f FakeRequest) GetURL() *url.URL
func (FakeRequest) GetUri ¶
func (f FakeRequest) GetUri() []byte
func (FakeRequest) GetValue ¶
func (f FakeRequest) GetValue(key ...string) contracts.InputValue
func (FakeRequest) Header ¶
func (f FakeRequest) Header(key string) []byte
func (FakeRequest) HeaderString ¶
func (f FakeRequest) HeaderString(key string) string
func (FakeRequest) IsXmlHttpRequest ¶
func (f FakeRequest) IsXmlHttpRequest() bool
func (FakeRequest) RemoteAddr ¶ added in v0.0.14
func (f FakeRequest) RemoteAddr() string
func (FakeRequest) RequestWithJson ¶
func (f FakeRequest) RequestWithJson() bool
func (FakeRequest) SetHeader ¶
func (f FakeRequest) SetHeader(key string, value []byte) contracts.RequestContract
func (FakeRequest) SetHeaderString ¶
func (f FakeRequest) SetHeaderString(key, value string) contracts.RequestContract
func (FakeRequest) ToString ¶ added in v0.0.9
func (f FakeRequest) ToString() string
func (FakeRequest) Unmarshal ¶
func (f FakeRequest) Unmarshal(to interface{}) error
Click to show internal directories.
Click to hide internal directories.