A body the client hands to its transport as is (bytes, str, an
iterable of bytes).
Attributes#
| Attribute | Type | Description |
|---|---|---|
body | object | |
content_type | str | None = None | |
content_length | int | None = None | |
tag | Literal['Raw'] = 'Raw' |
Functions#
__init__#
__init__(body, content_type=None, content_length=None) -> None| Parameter | Type | Description |
|---|---|---|
body | object | |
content_type | str | None = None | |
content_length | int | None = None |
to_json#
to_json() -> dict[str, object]Returns dict[str, object]
def to_json(self) -> dict[str, object]:
return {
"_id": "effect/HttpBody",
"_tag": "Raw",
"body": self.body,
"content_type": self.content_type,
"content_length": self.content_length,
}