Crate gostd_http

Source
Expand description

Package http provides HTTP client and server implementations.

zh-cn http包提供了HTTP客户端和服务端的实现。

Structs§

Client
Cookie
Header
Request
Response

Enums§

HTTPConnectError
Method
Common HTTP methods.
SameSite
Status
HTTP status codes as registered with IANA. See: https://www.iana.org/assignments/http-status-codes/http-status-codes.xhtml

Traits§

RoundTripper

Functions§

Delete
Get
Get issues a GET to the specified URL. If the response is one of the following redirect codes, Get follows the redirect,up to a maximum of 10 redirects:
Head
ParseHTTPVersion
Patch
Post
Post issues a POST to the specified URL. Post is a wrapper around DefaultClient.Post. To set custom headers, use Request::New and Client.Do.
PostForm
Put
ReadResponse

Type Aliases§

HttpResult
MIMEHeader