blob: 6ac3d3129c308855b3dac48088315de6b5e507b8 [file] [log] [blame]
// Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
library shelf.typedef;
import 'request.dart';
/// The signature of a function which handles a [Request].
///
/// A [Handler] may receive a request directly from an HTTP server or it
/// may be composed as part of a larger application.
///
/// Should return [Response] or [Future<Response>].
//TODO(kevmoo): provide a more detailed explanation.
typedef Handler(Request request);