Skip to main content

HttpHeaders

crawlee._types.HttpHeaders

A dictionary-like object representing HTTP headers.

Index

Methods

__delitem__

  • __delitem__(key): None
  • Parameters

    • key: str

    Returns None

__getitem__

  • __getitem__(key): str
  • Parameters

    • key: str

    Returns str

__iter__

  • __iter__(): Iterator[str]
  • Returns Iterator[str]

__len__

  • __len__(): int
  • Returns int

__or__

  • __or__(other): HttpHeaders
  • Return a new instance of HttpHeaders combining this one with another one.


    Parameters

    • other: HttpHeaders

    Returns HttpHeaders

__ror__

  • __ror__(other): HttpHeaders
  • Support reversed | operation (other | self).


    Parameters

    • other: HttpHeaders

    Returns HttpHeaders

__setitem__

  • __setitem__(key, value): None
  • Parameters

    • key: str
    • value: str

    Returns None

Properties

model_config

model_config:

root

root: Annotated[ dict[str, str], PlainValidator(lambda value: _normalize_headers(value)), Field(default_factory=dict), ]

noqa: RUF012