Pneuma class

Constructors

Pneuma({String host, int port, String baseUrl: '/'})

Properties

baseUrl String
final
host String
final
port int
final
requestTimeoutDuration Duration
read / write
responseDeadline Duration
read / write
status ServerStatus
read-only
statusStream Stream<ServerStatus>
read-only
hashCode int
The hash code for this object. [...]
read-only, inherited
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited

Methods

addDefaultHeaders(Map<String, Object> headers) → void
clearDefaultHeaders() → void
delete(dynamic path, dynamic handler) Pneuma
get(dynamic path, dynamic handler) Pneuma
match(dynamic path, dynamic handler, {RequestMethod method}) Pneuma
patch(dynamic path, dynamic handler) Pneuma
post(dynamic path, dynamic handler) Pneuma
put(dynamic path, dynamic handler) Pneuma
removeDefaultHeader(String name) → void
start() Future<Pneuma>
stop({bool force: false}) Future
use(Middleware middleware) Pneuma
useAll(List<Middleware> middlewares) Pneuma
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
toString() String
Returns a string representation of this object.
inherited

Operators

operator ==(dynamic other) bool
The equality operator. [...]
inherited