in azure/durable_functions/models/DurableOrchestrationClient.py [0:0]
def _create_http_response(
status_code: int, body: Union[str, Any]) -> func.HttpResponse:
body_as_json = body if isinstance(body, str) else json.dumps(body)
response_args = {
"status_code": status_code,
"body": body_as_json,
"mimetype": "application/json",
"headers": {
"Content-Type": "application/json",
}
}
return func.HttpResponse(**response_args)