type

Weblet

src mixin Weblet

Weblet services a web request.

See pod doc.

methods

onDelete

Convenience method to respond to a DELETE request.

onGet

Convenience method to respond to a GET request.

onHead

Convenience method to respond to a HEAD request.

onOptions

Convenience method to respond to a OPTIONS request.

onPost

Convenience method to respond to a POST request.

onPut

Convenience method to respond to a PUT request.

onService

Service a web request.

onTrace

Convenience method to respond to a TRACE request.

req

The WebReq instance for this current web request.

res

The WebRes instance for this current web request.

Slot Details

onDelete

src virtual Void onDelete()

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

onGet

src virtual Void onGet()

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

onHead

src virtual Void onHead()

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

onOptions

src virtual Void onOptions()

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

onPost

src virtual Void onPost()

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

onPut

src virtual Void onPut()

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

onService

src virtual Void onService()

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

onTrace

src virtual Void onTrace()

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

req

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.

res

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.