MCPcopy Index your code
hub / github.com/prometheus/client_python / gzip_accepted

Function gzip_accepted

prometheus_client/exposition.py:411–416  ·  view source on GitHub ↗
(accept_encoding_header: str)

Source from the content-addressed store, hash-verified

409
410
411def gzip_accepted(accept_encoding_header: str) -> bool:
412 accept_encoding_header = accept_encoding_header or ''
413 for accepted in accept_encoding_header.split(','):
414 if accepted.split(';')[0].strip().lower() == 'gzip':
415 return True
416 return False
417
418
419class MetricsHandler(BaseHTTPRequestHandler):

Callers 1

_bake_outputFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected