Lines Matching refs:Response
111 func (t *recordingTransport) RoundTrip(req *Request) (resp *Response, err error) {
299 t.Fatalf("Expected a non-nil Response on CheckRedirect failure (https://golang.org/issue/3795)")
303 t.Errorf("no Location header in Response")
343 want int // response code
525 if req.Response == nil {
526 t.Error("expected non-nil Request.Response")
548 // Issue 17773: don't follow a 308 (or 307) if the response doesn't
1029 t.Fatal("Response didn't set TLS Connection State.")
1046 if got := err.Error(); !strings.Contains(got, "HTTP response to HTTPS client") {
1047 t.Fatalf("error = %q; want error indicating HTTP response to HTTPS request", got)
1051 // Verify Response.ContentLength is populated. https://golang.org/issue/4126
1313 t.Fatal("got response from Get; expected error")
1448 // issue15577Tripper returns a Response with a redirect response
1449 // header and doesn't populate its Response.Request field.
1452 func (issue15577Tripper) RoundTrip(*Request) (*Response, error) {
1453 resp := &Response{
1461 // Issue 15577: don't assume the roundtripper's response populates its Request field.
1756 t.Errorf("#%d: Response: %v", i, err)