send_response
Send an HTTP response.
Parameters
Name | Description | Type | Default |
---|---|---|---|
body | Response body content. Non-string values will be serialized to JSON. Defaults to empty string. | Union[str, Dict, List] | '' |
status_code | HTTP status code. Defaults to 200. | int | 200 |
headers | HTTP response headers. Defaults to empty dict. BadSendResponse: If status_code is not an integer or headers is not a dictionary. | Dict[str, str] | {} |
Return Value
None