Coruja class

Representa um servidor HTTP com facilidades para manipulação de requisições GET e POST

Constructors

Coruja()

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

addGetRoute(String path, CorujaFunction fn) → void
Adiciona um caminho (path) e uma função responsável (fn) por ele.
addPostRoute(String path, CorujaFunction fn) → void
Adiciona um caminho (path) e uma função responsável (fn) por ele.
close() → void
Encerra o servidor HTTP
listen({int port = 8181}) → void
Inicia o servidor HTTP na porta desejada.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
setRequestFactory(CorujaRequestFactory newFactory) → void
Altera a fábrica de requisições padrão por uma outra qualquer que herde de CorujaRequestFactory
toString() String
A string representation of this object.
inherited

Operators

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