147 // If WriteHeader is not called explicitly, the first call to Write
148 // will trigger an implicit WriteHeader(http.StatusOK).
149▶ // Thus explicit calls to WriteHeader are mainly used to
150 // send error codes or 1xx informational responses.
151 //
· · ·
203 //
204 // After a call to Hijack, the original Request.Body must not
205▶ // be used. The original Request's Context remains valid and
206 // is not canceled until the Request's ServeHTTP method
207 // returns.
· · ·
260
261 // cancelCtx cancels the connection-level context.
262▶ cancelCtx context.CancelFunc
263
264 // rwc is the underlying network connection.
· · ·
284 // r is bufr's read source. It's a wrapper around rwc that provides
285 // io.LimitedReader-style limiting (while reading request headers)
286▶ // and functionality to support CloseNotifier. See *connReader docs.
287 r *connReader
288
· · ·
310}
311
312▶func (c *conn) hijacked() bool {
313 c.mu.Lock()
314 defer c.mu.Unlock()
+ 237 more matches in this file