-
Notifications
You must be signed in to change notification settings - Fork 14
Added reasonPhraseExtended() #2
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
Conversation
…dable description text Added some missing code
j-ulrich
left a comment
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.
@jjberry314
Thank you for your contribution! I appreciate that!
Please let me know if you don't want to take care of my review comments, then I will do it.
|
I think, on reflection, my changes can be discarded if you wish. I don't think I need reasonPhraseExtended() at all now. If my other tweaks are useful then please feel free to adopt them, or just reject the pull request. |
…ch emits only code + phrase rather than a description
|
I've replaced reasonPhraseExtended() and replaced it with reasonPhraseEx() which emits "HTTP code: phrase" where a phrase is available or "HTTP code" if not. I have not addressed your other review comments at this time. I have no strong feeling about keeping those changes, as I don't really need them. I'm happy to revert them. |
Sorry, but IMO the format of that string is application specific and therefore does not belong into the library. Someone else might need such a message to be formatted like "HTTP <code> - <phrase>" or "<phrase> (<code>)" or whatever. So I will now create a separate pull request to add the missing status codes but leave out the |
|
I completely understand and accept your reasoning. Thank you for being so patient with me. |
Added reasonPhraseExtended() to allow retrieval of extended human-readable description text
Added some missing codes