Weblet
src
mixin Weblet
Weblet services a web request.
See pod doc.
src
virtual Void onDelete()
Convenience method to respond to a DELETE request. Default implementation returns a 501 Not implemented error.
src
virtual Void onGet()
Convenience method to respond to a GET request. Default implementation returns a 501 Not implemented error.
src
virtual Void onHead()
Convenience method to respond to a HEAD request. Default implementation returns a 501 Not implemented error.
src
virtual Void onOptions()
Convenience method to respond to a OPTIONS request. Default implementation returns a 501 Not implemented error.
src
virtual Void onPost()
Convenience method to respond to a POST request. Default implementation returns a 501 Not implemented error.
src
virtual Void onPut()
Convenience method to respond to a PUT request. Default implementation returns a 501 Not implemented error.
src
virtual Void onService()
Service a web request. The default implementation routes to onGet
, onPost
, etc based on the request's method.
src
virtual Void onTrace()
Convenience method to respond to a TRACE request. Default implementation returns a 501 Not implemented error.
src
virtual WebReq req()
The WebReq instance for this current web request. Raise an exception if the current actor thread is not serving a web request.
src
virtual WebRes res()
The WebRes instance for this current web request. Raise an exception if the current actor thread is not serving a web request.