Dartspatcher class
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
-
head(String path, List<Function> callbacks, [Map? locals])
→ void
-
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
-
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