MCPcopy
hub / github.com/tornadoweb/tornado / format_field

Function format_field

tornado/web.py:3616–3617  ·  view source on GitHub ↗
(s: Union[str, bytes])

Source from the content-addressed store, hash-verified

3614 # - value (base64-encoded)
3615 # - signature (hex-encoded; no length prefix)
3616 def format_field(s: Union[str, bytes]) -> bytes:
3617 return utf8("%d:" % len(s)) + utf8(s)
3618
3619 to_sign = b"|".join(
3620 [

Callers 1

create_signed_valueFunction · 0.85

Calls 1

utf8Function · 0.90

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…