Details
-
Improvement
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
None
-
None
Description
Currently calling process::http::get|post gives you a Response struct, and all the specific status codes inherit from the Response (OK, Accepted, etc).
However, to be able to tell what specific response code it represents, we have to match the status string (response.status == "200 OK").
I propose that to avoid doing this from the callers, we should allow a more enumed type check such as (response.status == Response::OK).