toPlainHandler function

Future<Response> Function(Request) toPlainHandler(
  1. Spry app
)

Creates a plain handler.

Implementation

Future<Response> Function(Request) toPlainHandler(Spry app) {
  final handler = toHandler(app);

  return (request) async => handler(createEvent(app, request));
}