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)#
Bases:
Application[PT,ST],Generic[PT,ST]This class implements all protocols in HTTP family.
Hypertext Transfer Protocol (HTTP/1.1) [RFC 7230]
Hypertext Transfer Protocol version 2 (HTTP/2) [RFC 7540]
- Parameters:
*args (Any) – Arbitrary positional arguments.
**kwargs (Any) – Arbitrary keyword arguments.
- Return type:
Self
- property name: Literal['Hypertext Transfer Protocol']#
Name of current protocol.
- classmethod id()#
Index ID of the protocol.
- read(length=None, *, version=None, **kwargs)#
Read (parse) packet data.
- make(version=1, **kwargs)#
Make (construct) packet data.
- classmethod _make_data(data)#
Create key-value pairs from
datafor protocol construction.