def METHOD_NAME(
    key: str, request: BaseRequest, response: StreamResponse, time: float
) -> str:
    if request is None:
        return "(no headers)"
    # suboptimal, make istr(key) once
    return request.headers.get(key, "-")