Home | History | Annotate | Download | only in http

Lines Matching refs:hijack

2296 			rwc, _, err := w.(Hijacker).Hijack()
2344 // Issue 16456: allow writing 0 bytes on hijacked conn to test hijack
2352 conn, _, err := w.(Hijacker).Hijack()
2354 t.Errorf("Hijack: %v", err)
2791 // Tests that we can use CloseNotifier in one request, and later call Hijack
2799 // HTTP/1-only test. (http2 doesn't have Hijack)
2804 script <- "hijack"
2814 case "hijack":
2815 c, _, err := w.(Hijacker).Hijack()
2817 t.Errorf("Hijack in Handler: %v", err)
3196 conn, bufrw, err := rw.(Hijacker).Hijack()
3202 bufrw.Write([]byte("[hijack-to-bufw]"))
3204 conn.Write([]byte("[hijack-to-conn]"))
3213 if g, w := buf.String(), "[hijack-to-bufw][hijack-to-conn]"; g != w {
3227 conn, _, err := rw.(Hijacker).Hijack()
3232 _, _, err = rw.(Hijacker).Hijack()
3609 "/hijack": func(w ResponseWriter, r *Request) {
3610 c, _, _ := w.(Hijacker).Hijack()
3614 "/hijack-panic": func(w ResponseWriter, r *Request) {
3615 c, _, _ := w.(Hijacker).Hijack()
3678 mustGet(ts.URL + "/hijack")
3679 mustGet(ts.URL + "/hijack-panic")
3857 // This verifies that a handler can Flush and then Hijack.
3869 conn, buf, _ := w.(Hijacker).Hijack()
4208 conn, br, err := w.(Hijacker).Hijack()
4850 conn, _, err := w.(Hijacker).Hijack()
5177 // Test that the bufio.Reader returned by Hijack includes any buffered
5207 conn, buf, err := w.(Hijacker).Hijack()
5272 conn, buf, err := w.(Hijacker).Hijack()