Home | History | Annotate | Download | only in http

Lines Matching refs:Request

22 	Req  Request
26 WantWrite string // Request.Write
27 WantProxy string // Request.WriteProxy
29 WantError error // wanted error from Request.Write
35 Req: Request{
82 Req: Request{
111 Req: Request{
144 Req: Request{
179 Req: Request{
208 Req: Request{
220 // Request with a 0 ContentLength and a 0 byte body.
222 Req: Request{
246 // Request with a 0 ContentLength and a nil body.
248 Req: Request{
272 // Request with a 0 ContentLength and a 1 byte body.
274 Req: Request{
298 // Request with a ContentLength of 10 but a 5 byte body.
300 Req: Request{
312 // Request with a ContentLength of 4 but an 8 byte body.
314 Req: Request{
326 // Request with a 5 ContentLength and nil body.
328 Req: Request{
336 WantError: errors.New("http: Request.ContentLength=5 with nil Body"),
339 // Request with a 0 ContentLength and a body with 1 byte content and an error.
341 Req: Request{
359 // Request with a 0 ContentLength and a body without content and an error.
361 Req: Request{
382 Req: Request{
398 // If no Request.Host and no Request.URL.Host, we send
400 // Request.Header["Host"]. This is just testing that
403 Req: Request{
425 Req: Request{
444 Req: Request{
463 Req: Request{
485 // Request with host header field; IPv6 address with zone identifier
487 Req: Request{
500 // Request with optional host header field; IPv6 address with zone identifier
502 Req: Request{
578 return fmt.Errorf("expected substring %q in request: %s", substr, written)
586 return fmt.Errorf("unexpected Content-Length in request: %s", req)
589 return fmt.Errorf("unexpected Transfer-Encoding in request: %s", req)
649 // But a POST request is expected to have a body, so
664 // Verify that a blocking Request.Body doesn't block forever.
683 req := &Request{
714 // TestRequestWriteClosesBody tests that Request.Write closes its request.Body.
757 // TestRequestWriteError tests the Write err != nil checks in (*Request).write.
762 // w is the buffered io.Writer to write the request to. It
815 func dumpRequestOut(req *Request, onReadHeaders func()) ([]byte, error) {
835 // Wait for the request before replying with a dummy response: