Home | History | Annotate | Download | only in http

Lines Matching refs:Response

148 		fmt.Fprintf(w, "I am a chunked response.")
172 type reqFunc func(c *Client, url string) (*Response, error)
179 CheckResponse func(proto string, res *Response) // optional
180 EarlyCheckResponse func(proto string, res *Response) // optional; pre-normalize
221 t.Errorf("Response headers to handler differed:\nhttp/1 (%v):\n\t%#v\nhttp/2 (%v):\n\t%#v",
225 t.Errorf("Response bodies to handler differed.\nhttp1: %v\nhttp2: %v\n", res1body, res2body)
234 func mostlyCopy(r *Response) *Response {
251 func (tt h12Compare) normalizeRes(t *testing.T, res *Response, wantProto string) {
255 t.Errorf("got %q response; want %q", res.Proto, wantProto)
378 CheckResponse: func(proto string, res *Response) {
446 // chunking in their response headers and aren't allowed to produce
504 ReqFunc: func(c *Client, url string) (*Response, error) {
507 CheckResponse: func(proto string, res *Response) {
516 // reading the response body. Issue 13159.
640 // Header() of those values later, after the response
723 const resBody = "some response body"
935 t.Errorf("response \"foo\" header = %q; want %q", got, wantFoo)
1021 t.Errorf("Response body changed: %q -> %q", last, got)
1137 t.Errorf("For key %q, value %q, transport dialed. Expected local failure. Response was: (%v, %v)\nServer replied with: %s", tt.key, tt.val, res, err, body)
1259 EarlyCheckResponse: func(proto string, res *Response) {
1272 t.Errorf("%s: should see \"FOO\" in response; got:\n%s", proto, dump)