Closed HannesWell closed 6 months ago
Attention: 3 lines
in your changes are missing coverage. Please review.
Comparison is base (
12031b8
) 33.45% compared to head (3cae239
) 33.47%.
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.
Dear @HannesWell
In order to keep Passage Core architecture consistent, solid and away of sporradic changes we came up with set of rules, which must be followed by anyone willing to contribute to the product development.
In this particular case it worth mentioning that no commit should be offered without ticket reference.
Regarding you proposal. (And this discussion should rather be hosted in a proper ticket.)
One of principles we've build Passage Core architecture is that it is closed for modification and open for extenssion.
You offer modification: NetRequest
is a concise and sufficient interface for its aim; Ii describes request essential data and is obliged to carry no convenience information. You propose to bestow rather excessibe demand for its implementations which spoils the clean purpose of the interface.
There is parameter
method in this interface, that can actually respond to your custom queries, you just need to create you implementation of this interface.
If there is still no way to plug your own extension for this interface that does what you need for your purposes, we should rather discuss this extension mechanism, instead of modification of existing solution for your needs.
So I offer you to take a step back, raise a ticket, elaborate you needs, so we could locate an extension point(s) and and devise a solution.
In the current form request does not fit with the project architecture line of evolution.
So I offer you to take a step back, raise a ticket, elaborate you needs, so we could locate an extension point(s) and and devise a solution.
Created https://github.com/eclipse-passage/passage/issues/1260.
Within the FLS it can be of interest to know the sender of a request, e.g. to log it somewhere.
This adds a corresponding
remoteAddress()
method toNetRequest
to obtain it.Alternatively
JettyRequest
could grant access to theorigin
JettyRequest
, but this would add parts of Jetty's API to the API of Passage (but personally I would be perfectly fine with that too).