-
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
Document all HttpFields methods #10284
Labels
Comments
sbordet
added a commit
that referenced
this issue
Aug 14, 2023
* Added javadocs where missing and updated existing in both HttpFields and HttpField. * Removed HttpFields.takeAsImmutable() because it had a confusing semantic. * Deprecated HttpFields.[Mutable|Immutable]HttpFields and moved their implementation to top level package private classes. * Deprecated HttpField.valueParameters(), as there is an identical getValueParameters() * Fixed inconsistencies of HttpField.value, where in most cases could not be null, but in one case was allowed; now it can never be null. Signed-off-by: Simone Bordet <[email protected]>
sbordet
added a commit
that referenced
this issue
Aug 18, 2023
* Added javadocs where missing and updated existing in both HttpFields and HttpField. * Removed HttpFields.takeAsImmutable() because it had a confusing semantic. * Deprecated HttpFields.[Mutable|Immutable]HttpFields and moved their implementation to top level package private classes. * Deprecated HttpField.valueParameters(), as there is an identical getValueParameters() * Fixed inconsistencies of HttpField.value, where in most cases could not be null, but in one case was allowed; now it can never be null. Signed-off-by: Simone Bordet <[email protected]>
@sbordet I left some comments on the PR |
Fixed by #10308. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Jetty version(s)
12.0.0
Enhancement Description
Some
HttpFields
methods, such asget(HttpHeader)
need some clarification. For example, is this method returning all the values of a header? Is it returning only the first value? Some methods returnList
or an array. Do these methods ever returnnull
? If so, when?In general I would advocate documenting all the methods since they are a public part of the API.
The text was updated successfully, but these errors were encountered: