FastAPI - Middleware and Hooks
Given this middleware code, what will be the response header 'X-Custom' value?
from starlette.middleware.base import BaseHTTPMiddleware
class CustomHeaderMiddleware(BaseHTTPMiddleware):
async def dispatch(self, request, call_next):
response = await call_next(request)
response.headers['X-Custom'] = 'Hello'
return response
app.add_middleware(CustomHeaderMiddleware)