Generic BBOP handler for dealing with the gross parsing of responses from a REST server. This is just an example pass-thru handler that needs to be overridden (see subclasses).
You may note that things like status and status codes are not part of the base response. The reason is is that not all methods of REST in the environments that we use support them. For example: readURL in rhino. For this reason, the “health” of the response is left to the simple okay() function--just enought to be able to choose between “success” and “failure” in the managers. To give a bit more information in case of early error, there is message and message_type.
Similarly, there are no toeholds in the returned data except raw(). All data views and operations are implemented in the subclasses.
Summary
Functions | |
response | Contructor for a REST query response object. |
raw | Returns the initial response object, whatever it was. |
okay | Simple return verification of sane response from server. |
message | A message that the response wants to let you know about its creation. |
message_type | A message about the message (a string classifier) that the response wants to let you know about its message. |