Documentation ¶
Index ¶
- func GetGitRoot() (string, error)
- func JsonEqual(t *testing.T, expected, actual []byte)
- func MustDecodeHex(t *testing.T, str string) []byte
- func MustGitPath(relative string) string
- type Req
- func (r Req) GetBody() []byte
- func (r Req) GetCookie(k string) string
- func (r Req) GetHeader(k string) string
- func (r Req) GetHost() string
- func (r Req) GetMapBody(key string) string
- func (r Req) GetMethod() string
- func (r Req) GetParam(k string) string
- func (r Req) GetPath() string
- func (r Req) GetPostForm(key string) string
- func (r Req) GetQuery(k string) string
- func (r Req) GetUri() string
- type Resp
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func MustGitPath ¶
MustGitPath is util for getting relative path to git root
Types ¶
type Req ¶
type Req struct { BodyArr []byte HeaderMap map[string]string CookieMap map[string]string QueryMap map[string]string ParamMap map[string]string MethodStr string PathStr string HostStr string UriStr string }
Req is a zero value useful request object
func (Req) GetMapBody ¶
func (Req) GetPostForm ¶
Click to show internal directories.
Click to hide internal directories.