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

Class HPackLiteralString

scapy/contrib/http2.py:658–678  ·  view source on GitHub ↗

HPackLiteralString is a string. This class is used as a marker and implements an interface in common with HPackZString

Source from the content-addressed store, hash-verified

656
657
658class HPackLiteralString(HPackStringsInterface):
659 """ HPackLiteralString is a string. This class is used as a marker and
660 implements an interface in common with HPackZString
661 """
662 __slots__ = ['_s']
663
664 def __init__(self, s):
665 # type: (str) -> None
666 self._s = s
667
668 def __str__(self):
669 # type: () -> str
670 return self._s
671
672 def origin(self):
673 # type: () -> str
674 return plain_str(self._s)
675
676 def __len__(self):
677 # type: () -> int
678 return len(self._s)
679
680
681class EOS(object):

Callers 4

_parseMethod · 0.85
h2iMethod · 0.85
HPackHdrStringClass · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…