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 if a cookie key exists in the container. |
| Method | __getitem__ |
Retrieve the value of a cookie by key using the indexing operator. |
| Method | __init__ |
Initialize the Cookies object by parsing the Cookie header. |
| Method | __iter__ |
Iterate over the cookie container's key-value pairs. |
| Method | __len__ |
Return the number of cookies in the container. |
| Method | __repr__ |
Return the string representation of the Cookies object. |
| Method | get |
Retrieve the value of a cookie by key. |
| Method | get |
Return a copy of all cookies as a dictionary. |
| Method | items |
Return a view of the cookie container's items. |
| Method | keys |
Return a view of the cookie container's keys. |
| Method | values |
Return a view of the cookie container's values. |
| Class Variable | __slots__ |
Undocumented |
| Instance Variable | _data |
Undocumented |
Initialize the Cookies object by parsing the Cookie header.
| Parameters | |
cookiestr | None | The raw Cookie header string to parse. |
| Returns | |
None | This method does not return a value. |
Return the string representation of the Cookies object.
| Returns | |
str | The string representation of the Cookies object. |
Retrieve the value of a cookie by key.
| Parameters | |
key:str | The name of the cookie to retrieve. |
default:str | None, optional | The value to return if the key is not found (default is None). |
| Returns | |
str | None | The value of the cookie if found, otherwise the default value. |
Return a view of the cookie container's values.
| Returns | |
ValuesView[str] | A view object displaying the cookie's values. |