MCPcopy Index your code
hub / github.com/fluentpython/example-code-2e / _hkey

Function _hkey

21-async/mojifinder/bottle.py:1407–1410  ·  view source on GitHub ↗
(key)

Source from the content-addressed store, hash-verified

1405
1406
1407def _hkey(key):
1408 if '\n' in key or '\r' in key or '\0' in key:
1409 raise ValueError("Header names must not contain control characters: %r" % key)
1410 return key.title().replace('_', '-')
1411
1412
1413def _hval(value):

Callers 15

__contains__Method · 0.85
__delitem__Method · 0.85
__getitem__Method · 0.85
__setitem__Method · 0.85
get_headerMethod · 0.85
set_headerMethod · 0.85
add_headerMethod · 0.85
__contains__Method · 0.85
__delitem__Method · 0.85
__getitem__Method · 0.85
__setitem__Method · 0.85
appendMethod · 0.85

Calls 1

replaceMethod · 0.45

Tested by

no test coverage detected