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

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

Issue 11617004: Fix analyzer errors and warnings for pkg/http. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years 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
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 client; 5 library client;
6 6
7 import 'dart:io'; 7 import 'dart:io';
8 import 'dart:scalarlist';
8 9
9 import 'base_client.dart'; 10 import 'base_client.dart';
10 import 'base_request.dart'; 11 import 'base_request.dart';
11 import 'io_client.dart'; 12 import 'io_client.dart';
12 import 'streamed_response.dart'; 13 import 'streamed_response.dart';
14 import 'response.dart';
13 import 'utils.dart'; 15 import 'utils.dart';
14 16
15 /// The interface for HTTP clients that take care of maintaining persistent 17 /// The interface for HTTP clients that take care of maintaining persistent
16 /// connections across multiple requests to the same server. If you only need to 18 /// connections across multiple requests to the same server. If you only need to
17 /// send a single request, it's usually easier to use [head], [get], [post], 19 /// send a single request, it's usually easier to use [head], [get], [post],
18 /// [put], or [delete] instead. 20 /// [put], or [delete] instead.
19 /// 21 ///
20 /// When creating an HTTP client class with additional functionality, you must 22 /// When creating an HTTP client class with additional functionality, you must
21 /// extend [BaseClient] rather than [Client]. In most cases, you can wrap 23 /// extend [BaseClient] rather than [Client]. In most cases, you can wrap
22 /// another instance of [Client] and add functionality on top of that. This 24 /// another instance of [Client] and add functionality on top of that. This
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after
87 Future<Uint8List> readBytes(url, {Map<String, String> headers}); 89 Future<Uint8List> readBytes(url, {Map<String, String> headers});
88 90
89 /// Sends an HTTP request and asynchronously returns the response. 91 /// Sends an HTTP request and asynchronously returns the response.
90 Future<StreamedResponse> send(BaseRequest request); 92 Future<StreamedResponse> send(BaseRequest request);
91 93
92 /// Closes the client and cleans up any resources associated with it. It's 94 /// Closes the client and cleans up any resources associated with it. It's
93 /// important to close each client when it's done being used; failing to do so 95 /// important to close each client when it's done being used; failing to do so
94 /// can cause the Dart process to hang. 96 /// can cause the Dart process to hang.
95 void close(); 97 void close();
96 } 98 }
OLDNEW
« no previous file with comments | « no previous file | pkg/http/lib/src/streamed_request.dart » ('j') | pkg/http/lib/src/streamed_request.dart » ('J')

Powered by Google App Engine
This is Rietveld 408576698