ORIONIS API REFERENCE

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 HTTPBodyLimits(BaseEntity): (source)

View In Hierarchy

Configure finite request, buffering, multipart and concurrency budgets.

Method __post_init__ Reject noninteger, boolean and nonpositive resource limits.
Instance Variable max_body_size Maximum transport bytes consumed for one request, including framing.
Instance Variable max_buffer_size Maximum bytes materialized by body(), JSON and other buffered parsers.
Instance Variable max_concurrent_requests Maximum active HTTP requests per kernel, including response delivery.
Instance Variable max_field_size Maximum bytes of one multipart text field before decoding.
Instance Variable max_fields Maximum multipart text field count.
Instance Variable max_files Maximum multipart file count.
Instance Variable max_header_size Maximum MIME header bytes per multipart part.
Instance Variable max_memory_size Budget for retained multipart field strings and in-memory file payloads. Transport buffers, object metadata and temporary copies are additional.
Instance Variable max_part_size Maximum bytes of one multipart file or field.
Instance Variable memory_threshold Maximum file payload bytes retained before spooling to disk.

Inherited from BaseEntity:

Class Method _cachedFieldMetadata Retrieve field definitions and normalized types cached by class.
Method getFields Describe field names, normalized types, defaults, and metadata.
Method toDict Convert the dataclass instance to a recursively copied dictionary.
Class Variable __slots__ Undocumented
def __post_init__(self): (source)

Reject noninteger, boolean and nonpositive resource limits.

Returns
NoneValidate limits before the HTTP kernel snapshots them.
Raises
TypeErrorIf a limit is not an integer or is a boolean.
ValueErrorIf a limit is nonpositive, or a count is negative.
max_body_size: int = (source)

Maximum transport bytes consumed for one request, including framing.

max_buffer_size: int = (source)

Maximum bytes materialized by body(), JSON and other buffered parsers.

max_concurrent_requests: int = (source)

Maximum active HTTP requests per kernel, including response delivery.

max_field_size: int = (source)

Maximum bytes of one multipart text field before decoding.

max_fields: int = (source)

Maximum multipart text field count.

max_files: int = (source)

Maximum multipart file count.

max_header_size: int = (source)

Maximum MIME header bytes per multipart part.

max_memory_size: int = (source)

Budget for retained multipart field strings and in-memory file payloads. Transport buffers, object metadata and temporary copies are additional.

max_part_size: int = (source)

Maximum bytes of one multipart file or field.

memory_threshold: int = (source)

Maximum file payload bytes retained before spooling to disk.