http.Request类型


源代码[https://golang.org/src/net/http/request.go](https://golang.org/src/net/http/request.go)中定义的```http.Request```结构类型如下:

> ```go
> type Request struct {
>     Method string
>     URL *url.URL
>     Proto string // "HTTP/1.0"
>     ProtoMajor int // 1
>     ProtoMinor int // 0
>     Header Header
>     Body io.ReadCloser
>     GetBody func() (io.ReadCloser, error)
>     ContentLength int64
>     TransferEncoding []string
>     Close bool
>     Host string
>     Form url.Values
>     PostForm url.Values
>     MultipartForm *multipart.Form
>     Trailer Header
>     RemoteAddr string
>     RequestURI string
>     TLS *tls.ConnectionState
>     Cancel <-chan struct{}
>     Response *Response
>     ctx context.Context
> }
>

results matching ""

    No results matching ""