class_docstr: Start a server to serve a composition.
  
  debug     If the server should be started up in debug mode. By default, False. testing     If the server should
  return the ``app`` instance instead of blocking     the process (via running the ``app`` in ``uvicorn``). This is
  used     when taking advantage of a server ``TestClient``. By default, False
class_docstr_tok: ["Start","a","server","to","serve","a","composition",".","debug","If","the","server","should","be","started","up","in","debug","mode",".","By","default",",","False",".","testing","If","the","server","should","return","the","``","app","``","instance","instead","of","blocking","the","process","(","via","running","the","``","app","``","in","``","uvicorn","``",")",".","This","is","used","when","taking","advantage","of","a","server","``","TestClient","``",".","By","default",",","False"]
code: def http_app(self) -> "FastAPI":
      return setup_http_app(composition=self, debug=self.DEBUG)
  
imports: import os
  from flash.core.serve.interfaces.http import setup_http_app
  from flash.core.utilities.imports import _FASTAPI_AVAILABLE, _UVICORN_AVAILABLE
label_desc: Use image node_id 1 for calling the ServerMixin obj's underlying member method code with example usage: obj.http_app() and returns: setup_http_app