Documentation
¶
Index ¶
Constants ¶
View Source
const ( GetMethod = "GET" PostMethod = "POST" )
Variables ¶
This section is empty.
Functions ¶
func ContainsCookie ¶
func GetReqBody ¶
func ParseReqBody ¶
Types ¶
type Response ¶
type UrlObj ¶
type UrlObj struct {
// https://www.xxx.com:8080/admin/index.php?id=1&page=2
Url string
// https
Protocol string
// www.xxx.com
Host string
// 8080
Port int
// /admin/index.php
Path string
// {id:1,page:2}
Params map[string]string
}
UrlObj 对URL的封装 Example: https://www.xxx.com:8080/admin/index.php?id=1&page=2
func (*UrlObj) ChangeParams ¶
func (*UrlObj) RebuildUrl ¶
func (u *UrlObj) RebuildUrl()
Click to show internal directories.
Click to hide internal directories.