Method
__init__
(
self,
content: Any,
status_code: int = 200,
headers: Mapping[str, str] | None = None,
media_type: str | None = None,
background: BackgroundTask | None = None,
)
Source from the content-addressed store, hash-verified
| 182 | media_type = "application/json" |
| 183 | |
| 184 | def __init__( |
| 185 | self, |
| 186 | content: Any, |
| 187 | status_code: int = 200, |
| 188 | headers: Mapping[str, str] | None = None, |
| 189 | media_type: str | None = None, |
| 190 | background: BackgroundTask | None = None, |
| 191 | ) -> None: |
| 192 | super().__init__(content, status_code, headers, media_type, background) |
| 193 | |
| 194 | def render(self, content: Any) -> bytes: |
| 195 | return json.dumps( |
Callers
nothing calls this directly
Tested by
no test coverage detected