Lines Matching refs:requestMethod
132 func noBodyExpected(requestMethod string) bool {
133 return requestMethod == "HEAD"
263 RequestMethod string
306 t := &transferReader{RequestMethod: "GET"}
319 t.RequestMethod = rr.Request.Method
323 t.RequestMethod = rr.Method
340 t.TransferEncoding, err = fixTransferEncoding(isResponse, t.RequestMethod, t.Header)
345 realLength, err := fixLength(isResponse, t.StatusCode, t.RequestMethod, t.Header, t.TransferEncoding)
349 if isResponse && t.RequestMethod == "HEAD" {
382 if noBodyExpected(t.RequestMethod) {
428 func fixTransferEncoding(isResponse bool, requestMethod string, header Header) ([]string, error) {
483 func fixLength(isResponse bool, status int, requestMethod string, header Header, te []string) (int64, error) {
487 if noBodyExpected(requestMethod) {