MCPcopy Index your code
hub / github.com/python/cpython / accept_encodings

Method accept_encodings

Lib/xmlrpc/server.py:448–457  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

446 """, re.VERBOSE | re.IGNORECASE)
447
448 def accept_encodings(self):
449 r = {}
450 ae = self.headers.get("Accept-Encoding", "")
451 for e in ae.split(","):
452 match = self.aepattern.match(e)
453 if match:
454 v = match.group(3)
455 v = float(v) if v else 1.0
456 r[match.group(1)] = v
457 return r
458
459 def is_rpc_path_valid(self):
460 if self.rpc_paths:

Callers 1

do_POSTMethod · 0.95

Calls 4

getMethod · 0.45
splitMethod · 0.45
matchMethod · 0.45
groupMethod · 0.45

Tested by

no test coverage detected