router/router library

Classes

Context
Headers
Models HTTP Headers that can be managed by the framework.
Jsonable
Processable
Request
Request models the request object that Steward processes. It is a wrapper around the HttpRequest object but this may change in future iterations. Generally, you will not need to new up a request object on your own, but may find that useful when working with middleware and/or intercepting incoming requests.
Response
Models an HTTP Response Steward processes this response and writes out the necessary data to the live HTTP response.
RouteBinding
Router
StewardContext

Enums

HttpVerb

Functions

writeResponse(HttpRequest request, Future<Response> resp) Future<void>
writeResponse takes in an HTTP request and a steward response, and writes the contents of the steward response to the HTTP response. TODO: this should only be called by Steward

Typedefs

RequestCallback = Future<Response> Function(Context context)