Qore RestHandler Module Reference
1.1
|
the base abstract class for REST stream request handlers More...
Public Member Functions | |
constructor (hash cx, *hash ah) | |
creates the object with the given arguments More... | |
hash | getResponseHeaderMessage () |
this method returns the response message description hash by calling getResponseHeaderMessageImpl() More... | |
Private Attributes | |
*hash | ah |
call argument hash | |
hash | rhdr |
headers to add in the response | |
the base abstract class for REST stream request handlers
creates the object with the given arguments
cx | call context hash; this hash will have the following keys:
|
ah | any URI arguments in the request |
hash RestHandler::AbstractRestStreamRequestHandler::getResponseHeaderMessage | ( | ) |
this method returns the response message description hash by calling getResponseHeaderMessageImpl()
"code"
: the HTTP return code (see HttpServer::HttpCodes)"body"
: the message body to return in the response; if this key is returned, then the reply is sent immediately; a chunked reply is not made, and send() and sendImpl() are not called"close"
: (optional) set this key to True if the connection should be unconditionally closed when the handler returns"hdr"
: (optional) set this key to a hash of extra header information to be returned with the response