CorujaRequest class

Representa uma requisição HTTP com facilidades

É um adapter de um HttpRequest para as funções responsáveis de requisições

Implementers

Constructors

CorujaRequest(HttpRequest _request, Map<String, String> routeParams)
Cria um novo CorujaRequest que recebe um HttpRequest e um Map<String, String> com os parâmetros de rotas

Properties

body FutureOr<String>
Processa e retorna o conteúdo do corpo da requisição (se houver).
no setter
contentType String?
Retorna o tipo do corpo da requisição (content type: mime)
no setter
hashCode int
The hash code for this object.
no setterinherited
queryParams Map<String, String>
Retorna um Map<String, String> com os parâmetros de consulta (query params)
no setter
routeParams Map<String, String>
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited
writeResponse({int code = 200, String content = ''}) → void
Envia um retorno ao cliente HTTP definindo o código de resposta (code) e seu conteúdo (content).

Operators

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