darto library

Classes

Context
Darto
DartoError
Wraps an unhandled exception caught during request processing.
PendingResponse
Response
Immutable HTTP response value returned by Handler.
RouteChain
Fluent route builder returned by Darto.route and Router.route.
Router
RouteSpec
Metadata for a registered route — used by code generators.
UploadedFile
A file received via multipart/form-data, returned by DartoRequest.parseBody.

Constants

ACCEPTED → const int
ALREADY_REPORTED → const int
BAD_GATEWAY → const int
BAD_REQUEST → const int
BANDWIDTH_LIMIT_EXCEEDED → const int
CHECKPOINT → const int
CONFLICT → const int
CONTINUE → const int
CREATED → const int
EARLY_HINTS → const int
EXPECTATION_FAILED → const int
FAILED_DEPENDENCY → const int
FORBIDDEN → const int
FOUND → const int
GATEWAY_TIMEOUT → const int
GONE → const int
HTTP_VERSION_NOT_SUPPORTED → const int
I_AM_A_TEAPOT → const int
IM_USED → const int
INSUFFICIENT_STORAGE → const int
INTERNAL_SERVER_ERROR → const int
LENGTH_REQUIRED → const int
LOCKED → const int
LOOP_DETECTED → const int
METHOD_NOT_ALLOWED → const int
MOVED_PERMANENTLY → const int
MOVED_TEMPORARILY → const int
MULTI_STATUS → const int
MULTIPLE_CHOICES → const int
NETWORK_AUTHENTICATION_REQUIRED → const int
NO_CONTENT → const int
NON_AUTHORITATIVE_INFORMATION → const int
NOT_ACCEPTABLE → const int
NOT_EXTENDED → const int
NOT_FOUND → const int
NOT_IMPLEMENTED → const int
NOT_MODIFIED → const int
OK → const int
PARTIAL_CONTENT → const int
PAYLOAD_TOO_LARGE → const int
PAYMENT_REQUIRED → const int
PERMANENT_REDIRECT → const int
PRECONDITION_FAILED → const int
PRECONDITION_REQUIRED → const int
PROCESSING → const int
PROXY_AUTHENTICATION_REQUIRED → const int
REQUEST_ENTITY_TOO_LARGE → const int
REQUEST_HEADER_FIELDS_TOO_LARGE → const int
REQUEST_TIMEOUT → const int
REQUEST_URI_TOO_LONG → const int
REQUESTED_RANGE_NOT_SATISFIABLE → const int
RESET_CONTENT → const int
SEE_OTHER → const int
SERVICE_UNAVAILABLE → const int
SWITCHING_PROTOCOLS → const int
TEMPORARY_REDIRECT → const int
TOO_EARLY → const int
TOO_MANY_REQUESTS → const int
UNAUTHORIZED → const int
UNPROCESSABLE_ENTITY → const int
UNSUPPORTED_MEDIA_TYPE → const int
UPGRADE_REQUIRED → const int
URI_TOO_LONG → const int
USE_PROXY → const int
VARIANT_ALSO_NEGOTIATES → const int

Typedefs

ErrorHandler = FutureOr<Response> Function(DartoError error, Context c)
Handler = FutureOr<Response>? Function(Context c)
Middleware = FutureOr<void> Function(Context c, Next next)
Next = Future<void> Function()
RenderLayout = FutureOr<Response> Function(String content, Map<String, dynamic> props)
Layout function registered via Context.setRender.