-
Notifications
You must be signed in to change notification settings - Fork 47
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
#sendRequest ought to accept request header #518
Comments
We discussed in our call whether this should go into 0.3.0 along with all the other breaking changes. We decided it doesn't have to be in 0.3.0 and that we should start firming up our API stability, so this might be implemented as a second |
We should also make the response headers available, so instead of |
Agreed, |
* Refactoring Filter sendRequest tests * the out-of-band request future (created by the FilterHandler) now gets associated with the mimicked out-of-band response. * the FilterHarness now allows a channel to be built with multiple filters. this allows for better otherFiltersInChainCanFilterOutOfBand*(). Co-authored-by: Sam Barker <[email protected]> Signed-off-by: Keith Wall <[email protected]>
…r and return response header
…r and return response header
…r and return response header
…r and return response header
…r and return response header
* Fix #518: API - sendRequest ought to accept request header * validate that the request api version falls within range supported by the Kafka implementation. * remove deprecated #sendRequest Signed-off-by: Keith Wall <[email protected]>
Is your feature request related to a problem? Please describe.
As a filter author using the
sendRequest
API, I may need to specify a header. A likely user case is that I need to setclientId
on the request, which currently I am unable to do. The implementation current manufactures an clientId.There's also a separate argument for API consistency - the rest of the API already expects the
header
,body
tuple.Describe the solution you'd like
ApiMessage
will be validated as being a class with the nameRequestData
otherwise throwIllegalArgumentException
RequestHeaderData
is null, the implementation will manufacture one. ForapiVersion
it should default to the highest supported version that was agreed duringApiVersion
negotiation.RequestHeaderData
is not nullapiVersion
should be clamped by the range agreed byApiVersion
negotiation, but otherwise the value respected. This gives the user a mechanism to influence the version. This idiom would emerge that indicates to Kroxylicious to use the highest version it can.RequestHeaderData#apiKey
will be overwritten bymessage.apiKey()
.RequestHeaderData#apiKey
defaults to 0 which is actually meansPRODUCE
.Describe alternatives you've considered
A clear and concise description of any alternative solutions or features you've considered.
Additional context
Add any other context or screenshots about the feature request here.
The text was updated successfully, but these errors were encountered: