MCPcopy Create free account
hub / github.com/secdev/scapy / _strip_header_name

Function _strip_header_name

scapy/layers/http.py:232–236  ·  view source on GitHub ↗

Takes a header key (i.e., "Host" in "Host: www.google.com", and returns a stripped representation of it

(name)

Source from the content-addressed store, hash-verified

230
231
232def _strip_header_name(name):
233 """Takes a header key (i.e., "Host" in "Host: www.google.com",
234 and returns a stripped representation of it
235 """
236 return plain_str(name.strip()).replace("-", "_")
237
238
239def _header_line(name, val):

Callers 3

_parse_headersFunction · 0.85
_dissect_headersFunction · 0.85
__init__Method · 0.85

Calls 2

plain_strFunction · 0.90
replaceMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…