(self, scope: Scope, receive: Receive, send: Send, request_headers: Headers)
| 150 | return PlainTextResponse("OK", status_code=200, headers=headers) |
| 151 | |
| 152 | async def simple_response(self, scope: Scope, receive: Receive, send: Send, request_headers: Headers) -> None: |
| 153 | send = functools.partial(self.send, send=send, request_headers=request_headers) |
| 154 | await self.app(scope, receive, send) |
| 155 | |
| 156 | async def send(self, message: Message, send: Send, request_headers: Headers) -> None: |
| 157 | if message["type"] != "http.response.start": |