MCPcopy Create free account
hub / github.com/python/cpython / client_is_modern

Method client_is_modern

Lib/wsgiref/handlers.py:364–366  ·  view source on GitHub ↗

True if client can accept status and headers

(self)

Source from the content-addressed store, hash-verified

362
363
364 def client_is_modern(self):
365 """True if client can accept status and headers"""
366 return self.environ['SERVER_PROTOCOL'].upper() != 'HTTP/0.9'
367
368
369 def log_exception(self,exc_info):

Callers 2

send_preambleMethod · 0.95
send_headersMethod · 0.95

Calls 1

upperMethod · 0.45

Tested by

no test coverage detected