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

Side by Side Diff: pkg/http/lib/src/mock_client.dart

Issue 22284003: pkg: analysis aided cleanup (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: nits Created 7 years, 4 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « pkg/http/lib/src/io_client.dart ('k') | pkg/http/lib/src/request.dart » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 library mock_client; 5 library mock_client;
6 6
7 import 'dart:async'; 7 import 'dart:async';
8 import 'dart:io';
9 8
10 import 'base_client.dart'; 9 import 'base_client.dart';
11 import 'base_request.dart'; 10 import 'base_request.dart';
12 import 'byte_stream.dart'; 11 import 'byte_stream.dart';
13 import 'request.dart'; 12 import 'request.dart';
14 import 'response.dart'; 13 import 'response.dart';
15 import 'streamed_response.dart'; 14 import 'streamed_response.dart';
16 import 'utils.dart'; 15 import 'utils.dart';
17 16
18 // TODO(nweiz): once Dart has some sort of Rack- or WSGI-like standard for 17 // TODO(nweiz): once Dart has some sort of Rack- or WSGI-like standard for
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after
81 } 80 }
82 81
83 /// A handler function that receives [StreamedRequest]s and sends 82 /// A handler function that receives [StreamedRequest]s and sends
84 /// [StreamedResponse]s. Note that [request] will be finalized. 83 /// [StreamedResponse]s. Note that [request] will be finalized.
85 typedef Future<StreamedResponse> MockClientStreamHandler( 84 typedef Future<StreamedResponse> MockClientStreamHandler(
86 BaseRequest request, ByteStream bodyStream); 85 BaseRequest request, ByteStream bodyStream);
87 86
88 /// A handler function that receives [Request]s and sends [Response]s. Note that 87 /// A handler function that receives [Request]s and sends [Response]s. Note that
89 /// [request] will be finalized. 88 /// [request] will be finalized.
90 typedef Future<Response> MockClientHandler(Request request); 89 typedef Future<Response> MockClientHandler(Request request);
OLDNEW
« no previous file with comments | « pkg/http/lib/src/io_client.dart ('k') | pkg/http/lib/src/request.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698