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
class MultipartPart(IMultipartPart): (source)
Constructor: MultipartPart(headers, memory_threshold)
Represent a single part within a multipart HTTP request body.
| Method | __init__ |
Initialize a new MultipartPart from its MIME headers. |
| Method | _parse |
Parse a Content-Disposition header into a key-value dict. |
| Method | finalize |
Return this part's content in its final form. |
| Method | write |
Append chunk to this part's data buffer. |
| Class Variable | __slots__ |
Undocumented |
| Instance Variable | _write |
Undocumented |
| Instance Variable | content |
Undocumented |
| Instance Variable | data |
Undocumented |
| Instance Variable | filename |
Undocumented |
| Instance Variable | headers |
Undocumented |
| Instance Variable | is |
Undocumented |
| Instance Variable | name |
Undocumented |
Parse a Content-Disposition header into a key-value dict.
Preserve semicolons within single- or double-quoted values and prefer successfully decoded extended attributes over plain values.
| Parameters | |
disposition:str | Raw Content-Disposition header value. |
| Returns | |
dict[str, str] | Lowercased attribute names mapped to unquoted values. |
Return this part's content in its final form.
For field parts, applies Content-Transfer-Encoding decoding (base64 or quoted-printable) and decodes to a string using the charset declared in the part's Content-Type header, falling back to UTF-8.
| Returns | |
UploadedFile | str | The UploadedFile handle for file parts, or the decoded string for field parts. |