| 9 | |
| 10 | @dataclass |
| 11 | class MetadataHandler: |
| 12 | metadata: OAuthMetadata |
| 13 | |
| 14 | async def handle(self, request: Request) -> Response: |
| 15 | return PydanticJSONResponse( |
| 16 | content=self.metadata, |
| 17 | headers={"Cache-Control": "public, max-age=3600"}, # Cache for 1 hour |
| 18 | ) |
| 19 | |
| 20 | |
| 21 | @dataclass |
no outgoing calls
no test coverage detected