-
Notifications
You must be signed in to change notification settings - Fork 2k
Reviewed HTTP/3 API to simplify the implementation. #13181
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
Reviewed HTTP/3 API to simplify the implementation. #13181
Conversation
Signed-off-by: Simone Bordet <simone.bordet@gmail.com>
TODO: update the |
Signed-off-by: Simone Bordet <simone.bordet@gmail.com>
|
...y-core/jetty-http3/jetty-http3-common/src/main/java/org/eclipse/jetty/http3/HTTP3Stream.java
Outdated
Show resolved
Hide resolved
jetty-core/jetty-http3/jetty-http3-common/src/main/java/org/eclipse/jetty/http3/api/Stream.java
Outdated
Show resolved
Hide resolved
...-http3-server/src/main/java/org/eclipse/jetty/http3/server/HTTP3ServerConnectionFactory.java
Show resolved
Hide resolved
...y-http3-server/src/main/java/org/eclipse/jetty/http3/server/internal/HTTP3SessionServer.java
Show resolved
Hide resolved
@@ -50,22 +55,20 @@ public void onRequest(HeadersFrame frame) | |||
validateAndUpdate(EnumSet.of(FrameState.INITIAL), FrameState.HEADER); | |||
onHeaders(frame); | |||
updateClose(frame.isLast(), false); | |||
listener = notifyRequest(frame); | |||
listener = getSession().notifyRequest(frame); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can notifyRequest()
return null? Should it? I find the usage of null unclear here.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes it can return null
, as the listener is provided by user code.
In all the relevant places there are null checks.
...etty-http3/jetty-http3-tests/src/test/java/org/eclipse/jetty/http3/tests/DataDemandTest.java
Show resolved
Hide resolved
Signed-off-by: Simone Bordet <simone.bordet@gmail.com>
Signed-off-by: Simone Bordet <simone.bordet@gmail.com>
No description provided.