(self, scope: Scope, receive: Receive, send: Send)
| 161 | return wrapped |
| 162 | |
| 163 | async def __call__(self, scope: Scope, receive: Receive, send: Send) -> None: |
| 164 | if scope[class="st">"type"] == class="st">"websocket": |
| 165 | send = self._wrap_websocket_denial_send(send) |
| 166 | await send({class="st">"type": class="st">"http.response.start", class="st">"status": self.status_code, class="st">"headers": self.raw_headers}) |
| 167 | await send({class="st">"type": class="st">"http.response.body", class="st">"body": self.body}) |
| 168 | |
| 169 | if self.background is not None: |
| 170 | await self.background() |
| 171 | |
| 172 | |
| 173 | class HTMLResponse(Response): |
nothing calls this directly
no test coverage detected