Home | History | Annotate | Download | only in http

Lines Matching refs:Encoding

26 // with malformed chunked encoding.
199 // * there is no transfer-encoding=chunked already set.
234 // "Transfer-Encoding: chunked" header.
278 // Write Content-Length and/or Transfer-Encoding whose values are a
289 if _, err := io.WriteString(w, "Transfer-Encoding: chunked\r\n"); err != nil {
300 case "Transfer-Encoding", "Trailer", "Content-Length":
407 suppressedHeaders304 = []string{"Content-Type", "Content-Length", "Transfer-Encoding"}
408 suppressedHeadersNoBody = []string{"Content-Length", "Transfer-Encoding"}
457 // Transfer encoding, content length
483 // If there is no Content-Length or chunked Transfer-Encoding on a *Response
496 // Prepare body reader. ContentLength < 0 means chunked encoding
542 // Checks whether the encoding is explicitly "identity".
547 raw, present := t.Header["Transfer-Encoding"]
551 delete(t.Header, "Transfer-Encoding")
553 // Issue 12785; ignore Transfer-Encoding on HTTP/1.0 requests.
563 // chunked encoding must always come first.
564 for _, encoding := range encodings {
565 encoding = strings.ToLower(strings.TrimSpace(encoding))
566 // "identity" encoding is not recorded
567 if encoding == "identity" {
570 if encoding != "chunked" {
571 return &badStringError{"unsupported transfer encoding", encoding}
574 te[len(te)-1] = encoding
582 // contains a Transfer-Encoding header field."
586 // Transfer-Encoding and a Content-Length header
587 // field, the Transfer-Encoding overrides the
650 // Logic based on Transfer-Encoding
675 // no body if neither Transfer-Encoding chunked nor a
719 case "Transfer-Encoding", "Trailer", "Content-Length":