Qore RestHandler Module Reference
0.1
|
this is the main handler class to be registered with the HttpServer More...
Public Attributes | |
const | Err501 |
a hash for a 501 Unimplemented error message | |
const | Methods |
supported HTTP methods | |
const | MimeDataTypes |
supported mime types for de/serializing responses | |
Additional Inherited Members | |
![]() | |
hash | handleRequest (RestHandler rh, *list cl, string mn, hash cx, *hash args) |
this method is called by the RestHandler class to match the right object with incoming requests | |
abstract string | name () |
this provides the name of the REST class | |
*AbstractRestClass | subClass (string name, hash cx, *hash args) |
this method will be called to find a sub-class (ie with GET /invoices/1 - if this class represents "invoices", then subClass("1") will be called to return invoice 1; return NOTHING if the object doesn't exist More... | |
this is the main handler class to be registered with the HttpServer
The RestHandler class should be subclassed to customize its behavior.
To provide for logging; the following methods can be reimplemented in subclasses:
In order to match REST requests under a root path, reimplement the following method in a subclass: