class_docstr: ASGI compliant response class.
  
  It is expected to be called in async context and pass along
  `scope, receive, send` as in ASGI spec.
  
  >>> from ray.serve.http_util import Response  # doctest: +SKIP
  >>> scope, receive = ... # doctest: +SKIP
  >>> await Response({"k": "v"}).send(scope, receive, send) # doctest: +SKIP
docstr: Construct a HTTP Response based on input type.
  
  Args:
      content: Any JSON serializable object.
      status_code (int, optional): Default status code is 200.
docstr_tok: ["Construct","a","HTTP","Response","based","on","input","type",".","Args",":","content",":","Any","JSON","serializable","object",".","status_code","(","int",",","optional",")",":","Default","status","code","is","200","."]
code: def __init__(self, content=None, status_code=200):
      """Construct a HTTP Response based on input type.
  
      Args:
          content: Any JSON serializable object.
          status_code (int, optional): Default status code is 200.
      """
      self._messages = convert_object_to_asgi_messages(
          obj=content,
          status_code=status_code,
      )
  
imports: import asyncio
  import inspect
  import json
  import logging
  import pickle
  import socket
  from dataclasses import dataclass
  from typing import Any, List, Optional, Tuple, Type
  import starlette
  from fastapi.encoders import jsonable_encoder
  from starlette.types import ASGIApp, Message, Receive, Scope, Send
  from uvicorn.config import Config
  from uvicorn.lifespan.on import LifespanOn
  from ray._private.pydantic_compat import IS_PYDANTIC_2
  from ray.actor import ActorHandle
  from ray.serve._private.constants import SERVE_LOGGER_NAME
  from ray.serve._private.utils import serve_encoders
  from ray.serve.exceptions import RayServeException
label_desc: Use image node_id 1 to create a new Response object  with example: obj = Response(content, status_code)