Skip to content
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

Mention HttpStatus and StatusCode in JavaDoc in more places #454

Merged
merged 2 commits into from
Jan 25, 2024

Conversation

unkarjedy
Copy link
Contributor

I was originally searching for a way to test that HttpStatus code was "successful".
I didn't want to create a utility in my code base which checks 200 <= code && code < 300, because it's a too frequent pattern.
I found org.apache.hc.core5.http.message.StatusLine.StatusClass#from but I spent a couple of minutes for that.
It would be much easier if it was mentioned in the HttpStatus JavaDoc, because those two entities are closely interconnected.

@ok2c ok2c merged commit be20ae6 into apache:master Jan 25, 2024
11 checks passed
ok2c pushed a commit that referenced this pull request Jan 25, 2024
* Add JavaDoc @see cross-references between HttpStatus and StatusClass
* Mention HttpStatus in JavaDoc of HttpResponse.getCode
@ok2c
Copy link
Member

ok2c commented Jan 25, 2024

@unkarjedy Cherry-picked to 5.2.x

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants