membrane / api-gateway

API gateway for REST, OpenAPI, GraphQL and SOAP written in Java.
https://membrane-api.io
Apache License 2.0
448 stars 138 forks source link

RuleManager: Rewrite to use Exchange for Matching #1150

Closed predic8 closed 1 week ago

predic8 commented 1 week ago

Rule Manager:

Change: public Rule getMatchingRule(String hostHeader, String method, String uri, String version, int port, String localIP) {

to

public Rule getMatchingRule(Exchange exc) {

and

RuleKey:

key.complexMatch(hostHeader, method, uri, version, port, localIP))

to

key.complexMatch(exc)