Lines Matching refs:Encoding
26 // with malformed chunked encoding.
182 // * there is no transfer-encoding=chunked already set.
217 // "Transfer-Encoding: chunked" header.
261 // Write Content-Length and/or Transfer-Encoding whose values are a
272 if _, err := io.WriteString(w, "Transfer-Encoding: chunked\r\n"); err != nil {
283 case "Transfer-Encoding", "Trailer", "Content-Length":
389 suppressedHeaders304 = []string{"Content-Type", "Content-Length", "Transfer-Encoding"}
390 suppressedHeadersNoBody = []string{"Content-Length", "Transfer-Encoding"}
439 // Transfer encoding, content length
465 // If there is no Content-Length or chunked Transfer-Encoding on a *Response
478 // Prepare body reader. ContentLength < 0 means chunked encoding
524 // Checks whether the encoding is explicitly "identity".
529 raw, present := t.Header["Transfer-Encoding"]
533 delete(t.Header, "Transfer-Encoding")
535 // Issue 12785; ignore Transfer-Encoding on HTTP/1.0 requests.
545 // chunked encoding must always come first.
546 for _, encoding := range encodings {
547 encoding = strings.ToLower(strings.TrimSpace(encoding))
548 // "identity" encoding is not recorded
549 if encoding == "identity" {
552 if encoding != "chunked" {
553 return &badStringError{"unsupported transfer encoding", encoding}
556 te[len(te)-1] = encoding
564 // contains a Transfer-Encoding header field."
568 // Transfer-Encoding and a Content-Length header
569 // field, the Transfer-Encoding overrides the
632 // Logic based on Transfer-Encoding
658 // no body if neither Transfer-Encoding chunked nor a
702 case "Transfer-Encoding", "Trailer", "Content-Length":