Skip to main content

HttpHeaders

A dictionary-like object representing HTTP headers.

Index

Methods

__delitem__

  • __delitem__(*, key): None
  • Parameters

    • optionalkeyword-onlykey: str

    Returns None

__getitem__

  • __getitem__(*, key): str
  • Parameters

    • optionalkeyword-onlykey: str

    Returns str

__iter__

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

__len__

  • __len__(): int
  • Returns int

__or__

  • Return a new instance of HttpHeaders combining this one with another one.


    Parameters

    Returns HttpHeaders

__ror__

  • Support reversed | operation (other | self).


    Parameters

    Returns HttpHeaders

__setitem__

  • __setitem__(*, key, value): None
  • Parameters

    • optionalkeyword-onlykey: str
    • optionalkeyword-onlyvalue: str

    Returns None

Properties

model_config

model_config: Undefined

root

root: dict[str, str]

noqa: RUF012