Lines Matching refs:Client
95 // or to be sent by a client.
97 // The field semantics differ slightly between client and server
102 // For client requests an empty string means GET.
106 // requests) or the URL to access (for client requests).
113 // For client requests, the URL's Host specifies the server to
121 // For client requests these fields are ignored. The HTTP
122 // client code always uses either HTTP/1.1 or HTTP/2.
129 // by the server or to be sent by the client.
155 // For client requests, certain headers such as Content-Length
163 // For client requests a nil body means the request has no
164 // body, such as a GET request. The HTTP Client's Transport
174 // Body. It is used for client requests when a redirect requires
185 // For client requests, a value of 0 with a non-nil Body is
203 // For client requests, setting this field prevents re-use of
216 // For client requests Host optionally overrides the Host
225 // The HTTP client ignores Form and uses Body instead.
232 // The HTTP client ignores PostForm and uses Body instead.
237 // The HTTP client ignores MultipartForm and uses Body instead.
244 // trailer keys, with nil values. (The client declares which trailers it
248 // by the client.
250 // For client requests Trailer must be initialized to a map containing
266 // This field is ignored by the HTTP client.
270 // Request-Line (RFC 2616, Section 5.1) as sent by the client
272 // It is an error to set this field in an HTTP client request.
281 // This field is ignored by the HTTP client.
284 // Cancel is an optional channel whose closure indicates that the client
296 // to be created. This field is only populated during client
300 // ctx is either the client or server context. It should only
313 // For outgoing client requests, the context controls cancelation.
316 // client's connection closes, the request is canceled (with HTTP/2),
356 // UserAgent returns the client's User-Agent, if sent in the request.
444 // isH2Upgrade reports whether r represents the http2 "client preface"
462 const defaultUserAgent = "Go-http-client/1.1"
519 // According to RFC 6874, an HTTP client, proxy, or other
743 // Request.Body is set to body and will be closed by the Client
746 // NewRequest returns a Request suitable for use with Client.Do or
818 // For client requests, Request.ContentLength of 0
1053 // The server code and client code both use
1056 // which only using the HTTP Client code (such as
1309 // outgoingLength reports the Content-Length of this outgoing (Client) request.