We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
We are always using AsyncRequest and AsyncResponse in pairs, but AsyncRequest and AsyncResponse are always separated into two parameters.
AsyncRequest
AsyncResponse
Which means
esa-restlight/restlight-core/src/main/java/esa/restlight/core/handler/HandlerInvoker.java
Line 36 in ce8fe48
Using a composed interface(or class) to present a REQUEST.
public interface RequestContext { AsyncRequest request(); AsyncResponse response(); // other functions }
Advantages
The text was updated successfully, but these errors were encountered:
Mkabaka
Successfully merging a pull request may close this issue.
Motivation
We are always using
AsyncRequest
andAsyncResponse
in pairs, butAsyncRequest
andAsyncResponse
are always separated into two parameters.Which means
AsyncRequest
andAsyncResponse
is in the same lifecycleesa-restlight/restlight-core/src/main/java/esa/restlight/core/handler/HandlerInvoker.java
Line 36 in ce8fe48
Improvement
Using a composed interface(or class) to present a REQUEST.
Advantages
AsyncRequest
andAsyncResponse
is in the same lifecycleThe text was updated successfully, but these errors were encountered: