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