blob: f1d3a83f3b868f978eed7f102e46cab293b608ab [file] [log] [blame] [edit]
// Copyright (c) 2017, 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.
import 'dart:async';
import 'request.dart';
import 'response.dart';
/// The signature of a function which handles a [Request] and returns a
/// [Future<Response>].
///
/// A [Handler] may call an underlying HTTP implementation, or it may wrap
/// another [Handler] or a [Client].
typedef Future<Response> Handler(Request request);