Skip to content

Let the user optimize the request matching #602

@ErikPelli

Description

@ErikPelli

Extends #527.
Currently the URL matching just iterate over the list of the available request handlers and execute the matching ones.
This could have performance issues if the user specifies 10k+ thousands handlers, checked for each request.

In the Request handler Store specified in the pull request, we should add a method where we pass the request and the user returns the matching handlers, handled in its implementation.

Add an example in the examples folder where we use a map matching with the target host, and the modification of available handlers directly from the requests store.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions