Update Request documentation
This commit is contained in:
parent
d34d5df89e
commit
04bd0f4520
@ -16,6 +16,7 @@ type Request struct {
|
|||||||
|
|
||||||
// For client requests, Host specifies the host on which the URL is sought.
|
// For client requests, Host specifies the host on which the URL is sought.
|
||||||
// Host must contain a port.
|
// Host must contain a port.
|
||||||
|
//
|
||||||
// This field is ignored by the server.
|
// This field is ignored by the server.
|
||||||
Host string
|
Host string
|
||||||
|
|
||||||
@ -28,11 +29,13 @@ type Request struct {
|
|||||||
|
|
||||||
// RemoteAddr allows servers and other software to record the network
|
// RemoteAddr allows servers and other software to record the network
|
||||||
// address that sent the request.
|
// address that sent the request.
|
||||||
|
//
|
||||||
// This field is ignored by the client.
|
// This field is ignored by the client.
|
||||||
RemoteAddr net.Addr
|
RemoteAddr net.Addr
|
||||||
|
|
||||||
// TLS allows servers and other software to record information about the TLS
|
// TLS allows servers and other software to record information about the TLS
|
||||||
// connection on which the request was received.
|
// connection on which the request was received.
|
||||||
|
//
|
||||||
// This field is ignored by the client.
|
// This field is ignored by the client.
|
||||||
TLS tls.ConnectionState
|
TLS tls.ConnectionState
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user