MCPcopy
hub / github.com/nirui/sshwifty / clientSupportGZIP

Function clientSupportGZIP

application/controller/common.go:26–29  ·  view source on GitHub ↗
(r *http.Request)

Source from the content-addressed store, hash-verified

24)
25
26func clientSupportGZIP(r *http.Request) bool {
27 // Should be good enough
28 return strings.Contains(r.Header.Get("Accept-Encoding"), "gzip")
29}
30
31func clientContentEtagIsValid(r *http.Request, eTag string) bool {
32 d := r.Header.Get("If-None-Match")

Callers 2

serveStaticPageFunction · 0.85
serveStaticDataFunction · 0.85

Calls 1

GetMethod · 0.65

Tested by

no test coverage detected