winhttp

package
v1.5.0 Latest Latest
Warning

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

Go to latest
Published: May 30, 2025 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Request

type Request struct {
	URL            string // https://user:pass@www.example.com/test.txt
	Headers        string // split by "\r\n"
	UserAgent      string // default User-Agent
	ProxyURL       string // http://www.example.com:8080
	ProxyUser      string // proxy server username
	ProxyPass      string // proxy server password
	ConnectTimeout uint32 // milliseconds, default is 60s
	SendTimeout    uint32 // milliseconds, default is 600s
	ReceiveTimeout uint32 // milliseconds, default is 600s
	MaxBodySize    uint32 // zero is no limit
	AccessType     uint8  // reference document about WinHttpOpen
	Body           []byte // skip this field value
}

Request is the defined HTTP request in win_http.h.

type Response

type Response struct {
	StatusCode int32  // example 200, 404
	Headers    string // split by "\r\n"
	Body       []byte // skip this field value
}

Response is the defined HTTP response in win_http.h.

Jump to

Keyboard shortcuts

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