mirror of
https://github.com/arcan1s/ahriman.git
synced 2025-06-28 14:51:43 +00:00
update docstrings
This commit is contained in:
@ -56,12 +56,8 @@ def metrics_handler() -> Middleware:
|
||||
"""
|
||||
middleware for metrics support
|
||||
|
||||
Args:
|
||||
request(Request): request object
|
||||
handler(HandlerType): request handler as returned by application
|
||||
|
||||
Returns:
|
||||
StreamResponse: generated response for the request
|
||||
Middleware: middleware function to handle server metrics
|
||||
"""
|
||||
if aiohttp_openmetrics is not None:
|
||||
return aiohttp_openmetrics.metrics_middleware
|
||||
|
Reference in New Issue
Block a user