Documentation ¶
Index ¶
- type TMiniWeb
- func (self *TMiniWeb) ConnectWebSocket(URL string, cbFunc mwNet.CBHOOK) int
- func (self *TMiniWeb) Cookie() *mwCookie.Cookie
- func (self *TMiniWeb) GetErrorCode() int
- func (self *TMiniWeb) GetErrorMsg() string
- func (self *TMiniWeb) GetRedirect() bool
- func (self *TMiniWeb) GetReferer() string
- func (self *TMiniWeb) GetStatusCode() int
- func (self *TMiniWeb) GetTimeOut() time.Duration
- func (self *TMiniWeb) GetTimeOutConnect() time.Duration
- func (self *TMiniWeb) GetUserAgent() string
- func (self *TMiniWeb) GetWebCode(URL string) int
- func (self *TMiniWeb) IsClient()
- func (self *TMiniWeb) IsWeiXin()
- func (self *TMiniWeb) IsXMLHttp()
- func (self *TMiniWeb) Proxy() *mwProxy.TProxy
- func (self *TMiniWeb) ReqHeader() *mwHeader.Header
- func (self *TMiniWeb) ResponseByte() []byte
- func (self *TMiniWeb) ResponseText() string
- func (self *TMiniWeb) RspHeader() *mwHeader.Header
- func (self *TMiniWeb) SendRequest(URL string) int
- func (self *TMiniWeb) SetErrorCode(Code int)
- func (self *TMiniWeb) SetErrorMsg(Msg string)
- func (self *TMiniWeb) SetHttpMethod(Method string)
- func (self *TMiniWeb) SetPOST(data map[string]string)
- func (self *TMiniWeb) SetPOSTFile(Name string, FileName string)
- func (self *TMiniWeb) SetRedirect(Redirect bool)
- func (self *TMiniWeb) SetReferer(Referer string)
- func (self *TMiniWeb) SetTimeOut(TimeOut time.Duration)
- func (self *TMiniWeb) SetTimeOutConnect(TimeOutConnect time.Duration)
- func (self *TMiniWeb) SetURL(URL string)
- func (self *TMiniWeb) SetUserAgent(UserAgent string)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type TMiniWeb ¶
type TMiniWeb struct {
// contains filtered or unexported fields
}
func NewMiniWeb ¶
func NewMiniWeb() *TMiniWeb
func (*TMiniWeb) ConnectWebSocket ¶
WebSocket 采用回调方式接收/发送信息
func (*TMiniWeb) GetErrorCode ¶
func (*TMiniWeb) GetErrorMsg ¶
func (*TMiniWeb) GetRedirect ¶
func (*TMiniWeb) GetReferer ¶
func (*TMiniWeb) GetStatusCode ¶
func (*TMiniWeb) GetTimeOut ¶
func (*TMiniWeb) GetTimeOutConnect ¶
func (*TMiniWeb) GetUserAgent ¶
func (*TMiniWeb) GetWebCode ¶
func (*TMiniWeb) ResponseByte ¶
func (*TMiniWeb) ResponseText ¶
func (*TMiniWeb) SendRequest ¶
func (*TMiniWeb) SetErrorCode ¶
func (*TMiniWeb) SetErrorMsg ¶
func (*TMiniWeb) SetHttpMethod ¶
func (*TMiniWeb) SetPOSTFile ¶
func (*TMiniWeb) SetRedirect ¶
func (*TMiniWeb) SetReferer ¶
func (*TMiniWeb) SetTimeOut ¶
func (*TMiniWeb) SetTimeOutConnect ¶
func (*TMiniWeb) SetUserAgent ¶
Click to show internal directories.
Click to hide internal directories.