THE ORIONIS API
Build with clarity.
Explore the building blocks of an async-first Python framework. Every module, class, and method — connected, searchable, and ready to build with.
class documentation
Undocumented
| Method | __contains__ |
Check whether the given header key is present. |
| Method | __getitem__ |
Return the last value for the given header key. |
| Method | __init__ |
Initialize Headers from an iterable of key-value pairs. |
| Method | __iter__ |
Iterate over all header key-value pairs. |
| Method | __len__ |
Return the total number of header entries. |
| Method | __repr__ |
Return the canonical string representation of this instance. |
| Method | byte |
Yield all header pairs as UTF-8 encoded byte strings. |
| Method | count |
Return the number of occurrences of a header name. |
| Method | get |
Return the last value for the given header key. |
| Method | get |
Return all values for a key, or a mapping of all headers. |
| Method | has |
Report whether any header contains a carriage return or newline. |
| Method | items |
Return a copy of all header key-value pairs. |
| Method | keys |
Return the set of unique header names. |
| Method | values |
Return all header values in insertion order. |
| Class Variable | __slots__ |
Undocumented |
| Instance Variable | _has |
Undocumented |
| Instance Variable | _index |
Undocumented |
| Instance Variable | _items |
Undocumented |
Return the canonical string representation of this instance.
| Returns | |
str | Unambiguous representation showing all stored header pairs. |
Return the last value for the given header key.
| Parameters | |
key:str | Case-insensitive header name to look up. |
default:str | None, optional | Value returned when the key is absent (default None). |
| Returns | |
str | None | Last matching value, or default if not found. |
Report whether any header contains a carriage return or newline.
| Returns | |
bool | Whether the immutable input contains a CRLF injection marker. |