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

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

Issue 16019002: Merge the dart:uri library into dart:core and update the Uri class (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Final cleanup Created 7 years, 6 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/http.dart ('k') | pkg/http/lib/src/base_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 base_client; 5 library base_client;
6 6
7 import 'dart:async'; 7 import 'dart:async';
8 import 'dart:io'; 8 import 'dart:io';
9 import 'dart:typed_data'; 9 import 'dart:typed_data';
10 import 'dart:uri';
11 10
12 import 'base_request.dart'; 11 import 'base_request.dart';
13 import 'client.dart'; 12 import 'client.dart';
14 import 'request.dart'; 13 import 'request.dart';
15 import 'response.dart'; 14 import 'response.dart';
16 import 'streamed_response.dart'; 15 import 'streamed_response.dart';
17 import 'utils.dart'; 16 import 'utils.dart';
18 17
19 /// The abstract base class for an HTTP client. This is a mixin-style class; 18 /// The abstract base class for an HTTP client. This is a mixin-style class;
20 /// subclasses only need to implement [send] and maybe [close], and then they 19 /// subclasses only need to implement [send] and maybe [close], and then they
(...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after
128 message = "$message: ${response.reasonPhrase}"; 127 message = "$message: ${response.reasonPhrase}";
129 } 128 }
130 throw new HttpException("$message."); 129 throw new HttpException("$message.");
131 } 130 }
132 131
133 /// Closes the client and cleans up any resources associated with it. It's 132 /// Closes the client and cleans up any resources associated with it. It's
134 /// important to close each client when it's done being used; failing to do so 133 /// important to close each client when it's done being used; failing to do so
135 /// can cause the Dart process to hang. 134 /// can cause the Dart process to hang.
136 void close() {} 135 void close() {}
137 } 136 }
OLDNEW
« no previous file with comments | « pkg/http/lib/http.dart ('k') | pkg/http/lib/src/base_request.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698