Skip to content

Pass request to filter factories #102

@alukach

Description

@alukach

Currently, we pass a simple dictionary to the filter_builder:

filter_expr = await filter_builder(
{
"req": {
"path": request.url.path,
"method": request.method,
"query_params": dict(request.query_params),
"path_params": requests.extract_variables(request.url.path),
"headers": dict(request.headers),
},
**scope["state"],
}
)

We should ensure that the request itself is exposed to the filter factory, enabling access to any available property within that request (such as DB connections that are available on the request.app).

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions