- def create_response(self, status: int, output: str,
- content_type: str) -> HTTPResponse:
- return TextResponse(output, status=status, content_type=content_type)
+
+ def create_response(self, status: int, output: str) -> HTTPResponse:
+ return TextResponse(output, status=status, content_type=self.content_type)
+
+
+ def config(self) -> Configuration:
+ return cast(Configuration, self.request.app.ctx.api.config)