Documentation ¶
Index ¶
- Variables
- func Base64Bytes(UserName, Password string) string
- func Get(url string, structural any) any
- func JsonUnmarshal(response []byte, Struct any) any
- func MustNewRequest(method, url string, data io.Reader) *http.Request
- func Request(url string) []byte
- func SET_THE_HEADERS(req *http.Request)
- func SET_URL(url string) string
- type Context
- type HttpUtils
- func (is *HttpUtils) Add(key string, value string) *HttpUtils
- func (is *HttpUtils) GetCookie() []*http.Cookie
- func (is *HttpUtils) GetEncodeParams() *bytes.Reader
- func (is *HttpUtils) GetResultBody() string
- func (is *HttpUtils) GetUrl() string
- func (is *HttpUtils) GetValue(key string) string
- func (is *HttpUtils) NEW_SET_THE_HEADERS()
- func (is *HttpUtils) NewRequests() *HttpUtils
- func (is *HttpUtils) Unmarshal(s any) *HttpUtils
Constants ¶
This section is empty.
Variables ¶
View Source
var CatWebSite = "https://app.hbooker.com/"
View Source
var HappyWebSite = "https://app.happybooker.cn/"
View Source
var SFWebSite = "https://minipapi.sfacg.com/pas/mpapi/"
Functions ¶
func Base64Bytes ¶
func JsonUnmarshal ¶
func SET_THE_HEADERS ¶
Types ¶
type Context ¶
type Context struct { Url string Params string GetQuery []map[string]interface{} Structs interface{} }
func (*Context) AddCatToken ¶
func (c *Context) AddCatToken()
func (*Context) QueryToString ¶
type HttpUtils ¶
type HttpUtils struct {
// contains filtered or unexported fields
}
func NewHttpUtils ¶
func (*HttpUtils) GetEncodeParams ¶
func (*HttpUtils) GetResultBody ¶
func (*HttpUtils) NEW_SET_THE_HEADERS ¶
func (is *HttpUtils) NEW_SET_THE_HEADERS()
func (*HttpUtils) NewRequests ¶
Click to show internal directories.
Click to hide internal directories.