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

Side by Side Diff: pkg/http/lib/src/request.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/mock_client.dart ('k') | pkg/http/lib/src/utils.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) 2013, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2013, 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 request; 5 library request;
6 6
7 import 'dart:async';
8 import 'dart:io'; 7 import 'dart:io';
9 import 'dart:typed_data'; 8 import 'dart:typed_data';
10 9
11 import 'base_request.dart'; 10 import 'base_request.dart';
12 import 'byte_stream.dart'; 11 import 'byte_stream.dart';
13 import 'utils.dart'; 12 import 'utils.dart';
14 13
15 /// An HTTP request where the entire request body is known in advance. 14 /// An HTTP request where the entire request body is known in advance.
16 class Request extends BaseRequest { 15 class Request extends BaseRequest {
17 /// The size of the request body, in bytes. This is calculated from 16 /// The size of the request body, in bytes. This is calculated from
(...skipping 141 matching lines...) Expand 10 before | Expand all | Expand 10 after
159 set _contentType(ContentType value) { 158 set _contentType(ContentType value) {
160 headers[HttpHeaders.CONTENT_TYPE] = value.toString(); 159 headers[HttpHeaders.CONTENT_TYPE] = value.toString();
161 } 160 }
162 161
163 /// Throw an error if this request has been finalized. 162 /// Throw an error if this request has been finalized.
164 void _checkFinalized() { 163 void _checkFinalized() {
165 if (!finalized) return; 164 if (!finalized) return;
166 throw new StateError("Can't modify a finalized Request."); 165 throw new StateError("Can't modify a finalized Request.");
167 } 166 }
168 } 167 }
OLDNEW
« no previous file with comments | « pkg/http/lib/src/mock_client.dart ('k') | pkg/http/lib/src/utils.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698