-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
Implement containsLast in HttpFields #10340
Implement containsLast in HttpFields #10340
Conversation
@lorban @sbordet I've added a But there is something strange going on with HTTP/3 headers. They have a filter mechanism that a) uses streams so is not very efficient; b) is not reflected in the size. I've bypassed the stream for now in the iterators so the size will be correct (probably will break some tests), so this needs careful review. |
Signed-off-by: gregw <gregw@webtide.com>
…x/HttpFieldsContainsLast # Conflicts: # jetty-core/jetty-http/src/main/java/org/eclipse/jetty/http/HttpField.java # jetty-core/jetty-http/src/main/java/org/eclipse/jetty/http/HttpFields.java # jetty-core/jetty-http/src/test/java/org/eclipse/jetty/http/HttpFieldsTest.java
…x/HttpFieldsContainsLast
…x/HttpFieldsContainsLast # Conflicts: # jetty-core/jetty-server/src/main/java/org/eclipse/jetty/server/internal/ResponseHttpFields.java
…x/HttpFieldsContainsLast
…x/HttpFieldsContainsLast
…x/HttpFieldsContainsLast
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.
Apart a small nit, LGTM.
@Override | ||
public HttpField next() | ||
{ | ||
if (_index >= _size) |
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.
There was no change 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.
LGTM.
Looks like some of the changes here overlap with those in the Freeze HttpFields PR.
I think we should merge this one first.
This is built on the freeze PR. I thought that would have been first to be approved. Merging this will in effect merge that, but we kind of loose a little bit of history. |
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.
A small nit to fix, LGTM.
jetty-core/jetty-http/src/main/java/org/eclipse/jetty/http/MutableHttpFields.java
Show resolved
Hide resolved
Just waiting for a clean build... |
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.
LGTM
Experiment to see if containsLast in HttpFields can be implemented easily for #10326