mixin web::Weblet

web::Weblet

Source

Weblet services a web request.

See pod doc.

onDelete

virtual Void onDelete()

Source

Convenience method to respond to a DELETE request. Default implementation returns a 501 Not implemented error.

onGet

virtual Void onGet()

Source

Convenience method to respond to a GET request. Default implementation returns a 501 Not implemented error.

onHead

virtual Void onHead()

Source

Convenience method to respond to a HEAD request. Default implementation returns a 501 Not implemented error.

onOptions

virtual Void onOptions()

Source

Convenience method to respond to a OPTIONS request. Default implementation returns a 501 Not implemented error.

onPost

virtual Void onPost()

Source

Convenience method to respond to a POST request. Default implementation returns a 501 Not implemented error.

onPut

virtual Void onPut()

Source

Convenience method to respond to a PUT request. Default implementation returns a 501 Not implemented error.

onService

virtual Void onService()

Source

Service a web request. The default implementation routes to onGet, onPost, etc based on the request's method.

onTrace

virtual Void onTrace()

Source

Convenience method to respond to a TRACE request. Default implementation returns a 501 Not implemented error.

req

virtual WebReq req()

Source

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()

Source

The WebRes instance for this current web request. Raise an exception if the current actor thread is not serving a web request.