- After
void After(VoidCallback callback)
Adds a filter to all paths which is called after the handler.
- After
void After(string path, VoidCallback callback)
Adds a filter to the given path which is called after the handler.
- Any
void Any(string path, Result function(HTTPServerRequest, HTTPServerResponse) callback)
Adds a handler for all method types on the given path.
- Any
void Any(string path, string contentType, Result function(HTTPServerRequest, HTTPServerResponse) callback)
Adds a handler for all method types on the given path.
- Any
void Any(string path, string contentType, Result delegate(HTTPServerRequest, HTTPServerResponse) callback)
Adds a handler for all method types on the given path.
- Any
void Any(string path, string contentType, Result delegate(HTTPServerRequest, HTTPServerResponse) callback)
Adds a handler for all method types on the given path.
- Before
void Before(VoidCallback callback)
Adds a filter to all paths which is called before the handler.
- Before
void Before(string path, VoidCallback callback)
Adds a filter to the given path which is called before the handler.
- Catch
void Catch(ClassInfo type, ExceptionCallback callback)
Attaches a handler to an exception type.
- Flush
void Flush()
Instantly updates the installed routes (instead of lazily).
- Match
void Match(HTTPMethod method, string path, Result function(HTTPServerRequest, HTTPServerResponse) callback)
Matches a path and method type using a function callback.
- Match
void Match(HTTPMethod method, string path, string contentType, Result function(HTTPServerRequest, HTTPServerResponse) callback)
Matches a path and method type using a function callback.
- Match
void Match(HTTPMethod method, string path, Result delegate(HTTPServerRequest, HTTPServerResponse) callback)
Matches a path and method type using a delegate callback.
- Match
void Match(HTTPMethod method, string path, string contentType, Result delegate(HTTPServerRequest, HTTPServerResponse) callback)
Matches a path and method type using a delegate callback.
- Resource
void Resource()
Undocumented in source. Be warned that the author may not have intended to support it.
- Resources
void Resources()
Undocumented in source. Be warned that the author may not have intended to support it.
- Scope
auto Scope(string prefix)
Produces a child of the current scope with the given prefix.
- Start
void Start()
- Stop
void Stop()
Instantly stops the server.
- halt
void halt(string message)
Halt execution of a route or filter handler.
Halt uses a HaltThrowable. If caught, it should be re-thrown
to properly stop exection of a callback.
- halt
void halt(int status, string message)
Halt execution of a route or filter handler.
Halt uses a HaltThrowable. If caught, it should be re-thrown
to properly stop exection of a callback.
- handleRequest
void handleRequest(HTTPServerRequest req, HTTPServerResponse res)
Forwards a requrest to the internal URLRouter.
The vibrant router class.