HttpServerRoute
Description
- › Inherits:
Overview
Properties
Methods
Signals
Properties
asynchronous
This property holds the whether the route is being handled asynchronuously, i.e. the handler method receives a HttpServerResponder in the second parameter (first is the request) and has to send the response manually.
- › Type:
Boolean
- › Signal:
asynchronousChanged()
- › Attributes:
Writable
method
This property holds the HTTP method which the route should handle.
- › Type:
HttpServerRequest.Method
- › Signal:
methodChanged()
- › Attributes:
Writable
path
This property holds the path which the route should handle.
- › Type:
String
- › Signal:
pathChanged()
- › Attributes:
Writable
Example
See HttpServer example on how to use HttpServerRoute.