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 McpProtocolResponse(Response): (source)
Constructor: McpProtocolResponse(content, status_code, headers, media_type)
Mark encoded protocol output to keep adaptation constant-time.
| Method | __init__ |
Keep preencoded bytes while emitting mandatory JSON response metadata. |
| Class Variable | __slots__ |
Undocumented |
def __init__(self, content:
bytes, status_code: int = 200, headers: Mapping[ str, str] | None = None, media_type: str = _JSON_MEDIA_TYPE):
(source)
¶
Keep preencoded bytes while emitting mandatory JSON response metadata.
| Parameters | |
content:bytes | Value supplied for content. |
statusint | Value supplied for status_code. |
headers:Mapping[str, str] | None | Value supplied for headers. |
mediastr | Value supplied for media_type. |
| Returns | |
None | Complete the documented operation without returning a value. |