MCPcopy
hub / github.com/cloudflare/cloudflared / isTransferEncodingChunked

Function isTransferEncodingChunked

connection/quic_connection.go:400–405  ·  view source on GitHub ↗
(req *http.Request)

Source from the content-addressed store, hash-verified

398}
399
400func isTransferEncodingChunked(req *http.Request) bool {
401 transferEncodingVal := req.Header.Get("Transfer-Encoding")
402 // https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Transfer-Encoding suggests that this can be a comma
403 // separated value as well.
404 return strings.Contains(strings.ToLower(transferEncodingVal), "chunked")
405}
406
407// A helper struct that guarantees a call to close only affects read side, but not write side.
408type nopCloserReadWriter struct {

Callers 1

buildHTTPRequestFunction · 0.85

Calls 1

GetMethod · 0.80

Tested by

no test coverage detected