Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(816)

Unified Diff: pkg/shelf/lib/src/handler.dart

Issue 219283008: pkg/shelf (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: cl nits Created 6 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « pkg/shelf/lib/shelf_io.dart ('k') | pkg/shelf/lib/src/handlers/logger.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/shelf/lib/src/handler.dart
diff --git a/pkg/shelf/lib/src/handler.dart b/pkg/shelf/lib/src/handler.dart
new file mode 100644
index 0000000000000000000000000000000000000000..6ac3d3129c308855b3dac48088315de6b5e507b8
--- /dev/null
+++ b/pkg/shelf/lib/src/handler.dart
@@ -0,0 +1,16 @@
+// 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);
« no previous file with comments | « pkg/shelf/lib/shelf_io.dart ('k') | pkg/shelf/lib/src/handlers/logger.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698