Home | History | Annotate | Download | only in http

Lines Matching refs:ContentLength

152 			ContentLength: 6,
183 ContentLength: 6,
217 // Request with a 0 ContentLength and a 0 byte body.
225 ContentLength: 0, // as if unset by user
246 // Request with a 0 ContentLength and a 1 byte body.
254 ContentLength: 0, // as if unset by user
272 // Request with a ContentLength of 10 but a 5 byte body.
280 ContentLength: 10, // but we're going to send only 5 bytes
283 WantError: errors.New("http: ContentLength=10 with Body length 5"),
286 // Request with a ContentLength of 4 but an 8 byte body.
294 ContentLength: 4, // but we're going to try to send 8 bytes
297 WantError: errors.New("http: ContentLength=4 with Body length 8"),
300 // Request with a 5 ContentLength and nil body.
308 ContentLength: 5, // but we'll omit the body
310 WantError: errors.New("http: Request.ContentLength=5 with nil Body"),
313 // Request with a 0 ContentLength and a body with 1 byte content and an error.
321 ContentLength: 0, // as if unset by user
333 // Request with a 0 ContentLength and a body without content and an error.
341 ContentLength: 0, // as if unset by user
562 if req.ContentLength != 0 {
563 t.Errorf("got req.ContentLength %d, want 0", req.ContentLength)