HttpHeaders
crawlee._types.HttpHeaders
Index
Constructors
Methods
Constructors
__init__
Create a new instance.
Parameters
headers: Mapping[str, str] | None = None
Returns None
Methods
__delitem__
Prevent deleting a header, as the object is immutable.
Parameters
key: str
Returns None
__getitem__
Get the value of a header by its name, case-insensitive.
Parameters
key: str
Returns str
__iter__
Return an iterator over the header names.
Returns Iterator[str]
__len__
Return the number of headers.
Returns int
__repr__
Return a string representation of the object.
Returns str
__setitem__
Prevent setting a header, as the object is immutable.
Parameters
key: str
value: str
Returns None
An immutable mapping for HTTP headers that ensures case-insensitivity for header names.