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

Method __init__

scapy/layers/http.py:485–488  ·  view source on GitHub ↗
(self, name, default)

Source from the content-addressed store, hash-verified

483 __slots__ = ["real_name"]
484
485 def __init__(self, name, default):
486 self.real_name = name
487 name = _strip_header_name(name)
488 StrField.__init__(self, name, default, fmt="H")
489
490 def i2repr(self, pkt, x):
491 if isinstance(x, bytes):

Callers

nothing calls this directly

Calls 2

_strip_header_nameFunction · 0.85
__init__Method · 0.45

Tested by

no test coverage detected