mixin web::Weblet
web::Weblet
Weblet services a web request.
See pod doc.
- onDelete
-
virtual Void onDelete()
Convenience method to respond to a DELETE request. Default implementation returns a 501 Not implemented error.
- onGet
-
virtual Void onGet()
Convenience method to respond to a GET request. Default implementation returns a 501 Not implemented error.
- onHead
-
virtual Void onHead()
Convenience method to respond to a HEAD request. Default implementation returns a 501 Not implemented error.
- onOptions
-
virtual Void onOptions()
Convenience method to respond to a OPTIONS request. Default implementation returns a 501 Not implemented error.
- onPost
-
virtual Void onPost()
Convenience method to respond to a POST request. Default implementation returns a 501 Not implemented error.
- onPut
-
virtual Void onPut()
Convenience method to respond to a PUT request. Default implementation returns a 501 Not implemented error.
- onService
-
virtual Void onService()
Service a web request. The default implementation routes to
onGet
,onPost
, etc based on the request's method. - onTrace
-
virtual Void onTrace()
Convenience method to respond to a TRACE request. Default implementation returns a 501 Not implemented error.
- req
-
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.
- res
-
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.