mwCore

package
v0.0.0-...-3e0a51a Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 31, 2019 License: MIT Imports: 19 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type WebCore

type WebCore struct {
	Method         string            // HTTP
	Referer        string            // HTTP
	UserAgent      string            // HTTP
	Redirect       bool              // 重定向
	TimeOut        time.Duration     // 数据返回超时
	TimeOutConnect time.Duration     // 连接超时
	PostData       map[string]string // POST Data
	Result         []byte            // Web Response
	HttpVersion    string            // HTTP/1.1
	StatusCode     int               // Status Code
	StatusMsg      string            // Status Text
	URL            *mwURL.TUrl       // 访问地址
	Cookie         *mwCookie.Cookie  // Cookie
	ReqHeader      *mwHeader.Header  // 请求 Request Header
	RspHeader      *mwHeader.Header  // 响应 Response Header
	Proxy          *mwProxy.TProxy   // Proxy Module
	ObjError       *mwError.TError   // Error Object
	// contains filtered or unexported fields
}

func (*WebCore) AddPost

func (self *WebCore) AddPost(Name string, Value string)

func (*WebCore) InitHeader

func (self *WebCore) InitHeader()

func (*WebCore) RegisterCBHook

func (self *WebCore) RegisterCBHook(cbFunc mwNet.CBHOOK)

func (*WebCore) SendRequest

func (self *WebCore) SendRequest() int

func (*WebCore) SetMethod

func (self *WebCore) SetMethod(Method string)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL