You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Enhance http.HTTPStatus with is_* properties that indicate the HTTP status category #95149
Programs that deal with HTTP requests usually need to deal with the various status codes. Oftentimes, knowing the broad category is sufficient to make quick decisions. For example, a client needs to handle responses differently depending on the status code. Assuming status is an HTTPStatus, instead of writing:
Activity
itaispiegel commentedon Jul 23, 2022
I like this idea :)
corona10 commentedon Jul 28, 2022
@alexei
Would you like to submit the patch?
gh-95149: Enhance `http.HTTPStatus` with properties that indicate the…
alexei commentedon Sep 5, 2022
This is going to be available starting 3.12, see #95453