HTTP - Hypertext Transfer Protocol¶
pcapkit.protocols.application.http contains
HTTP
only, which is a base class for Hypertext Transfer
Protocol (HTTP) * family, eg.
HTTP/1.*
and HTTP/2.
-
class
pcapkit.protocols.application.http.HTTP(file=None, length=None, **kwargs)[source]¶ Bases:
pcapkit.protocols.application.application.ApplicationThis class implements all protocols in HTTP family.
Hypertext Transfer Protocol (HTTP/1.1) [RFC 7230]
Hypertext Transfer Protocol version 2 (HTTP/2) [RFC 7540]
-
classmethod
id()[source]¶ Index ID of the protocol.
- Returns
Index ID of the protocol.
- Return type
Tuple[Literal[‘HTTPv1’], Literal[‘HTTPv2’]]
-
property
length¶ Header length of current protocol.
- Raises
UnsupportedCall – This protocol doesn’t support
length.
-
property
name¶ Name of current protocol.
- Return type
Literal[‘Hypertext Transfer Protocol’]