arowana library
Support for doing something awesome.
More dartdocs go here.
Classes
- AppChannel
- Application
-
This object starts and stops instances of your
ApplicationChannel
. - ApplicationEventHub
- ApplicationOptions
- An object that contains configuration values for an Application.
- ApplicationServer
-
Listens for HTTP requests and delivers them to its
ApplicationChannel
instance. - Auth
- AuthBasicCredentials
- A structure to hold Basic authorization credentials.
- Authorization
- AuthorizationBasicParser
- Parses a Basic Authorization header.
- AuthorizationBearerParser
- Parses a Bearer token from an Authorization header.
-
AuthorizationParser<
T> - AuthToken
- AuthValidator
- Cascade
- A helper that calls several handlers in sequence and returns the first acceptable response.
- DefaultChannel
- DefaultServer
- Pipeline
- A helper that makes it easy to compose a set of Middleware and a Handler.
- Request
- An HTTP request to be processed by a Shelf application.
- Response
- The response returned by a Handler.
- Router
- RouterGroup
- Server
- An adapter with a concrete URL.
- ServerHandler
- A connected pair of a Server and a Handler.
- ServiceRegistry
- An object that manages the cleanup of service objects when an application is stopped.
Enums
- AuthorizationParserExceptionReason
- The reason either AuthorizationBearerParser or AuthorizationBasicParser failed.
- NodeType
Extensions
- BodyParams on Request
- MiddlewareExtensions on Middleware
- Extensions on Middleware to aid in composing Middleware and Handlers.
- ResponseX on Response
- RouterParams on Request
Properties
- addChunkedEncoding → Middleware
-
Middleware that adds
chunked transfer coding
to a responses if none of the following conditions are true:
final
Functions
-
createMiddleware(
{FutureOr< Response?> requestHandler(Request)?, FutureOr<Response> responseHandler(Response)?, FutureOr<Response> errorHandler(Object error, StackTrace)?}) → Middleware - Creates a Middleware using the provided functions.
-
isolateEntryPoint(
InitialServerEvent msg) → void -
logRequests(
{void logger(String message, bool isError)?}) → Middleware - Middleware which prints the time of the request, the elapsed time for the inner handlers, the response's status code and the request URI.
Typedefs
Exceptions / Errors
- ApplicationStartupException
- Thrown when an application encounters an exception during startup.
- AuthorizationParserException
- An exception indicating why Authorization parsing failed.
- HijackException
- An exception used to indicate that a request has been hijacked.
- TokenExpiredException