Dartspatcher class

Constructors

Dartspatcher()
factory

Properties

errorHandler Function?
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
headers Map<String, String>
getter/setter pair
locals Map
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
server HttpServer?
getter/setter pair
virtualDirectory ↔ VirtualDirectory?
getter/setter pair

Methods

close(HttpRequest request, int statusCode, [dynamic body = '']) → void
Close http request
connect(String path, List<Function> callbacks, [Map? locals]) → void
Set listeners for CONNECT request
delete(String path, List<Function> callbacks, [Map? locals]) → void
Set listeners for DELETE request
get(String path, List<Function> callbacks, [Map? locals]) → void
Set listeners for GET request
Set listeners for HEAD request
listen(InternetAddress internetAddress, int port, [Function? callback]) → void
Server listen start
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
options(String path, List<Function> callbacks, [Map? locals]) → void
Set listeners for OPTIONS request
patch(String path, List<Function> callbacks, [Map? locals]) → void
Set listeners for PATCH request
post(String path, List<Function> callbacks, [Map? locals]) → void
Set listeners for POST request
put(String path, List<Function> callbacks, [Map? locals]) → void
Set listeners for PUT request
setErrorHandler(Function callback) → void
Set error handler callback
setHeaders(Map<String, String> headers) → void
Set global server response headers
setMiddleware(List<Function> callbacks, [Map? locals]) → void
Set server middlewares
setVirtualDirectory(String path) → void
Set Virtual Directory path
toString() String
A string representation of this object.
inherited
trace(String path, List<Function> callbacks, [Map? locals]) → void
Set listeners for TRACE request

Operators

operator ==(Object other) bool
The equality operator.
inherited