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

Side by Side Diff: runtime/bin/http_impl.dart

Issue 11235056: Fix bug in r13232 (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 2 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 | « no previous file | no next file » | 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 class _HttpHeaders implements HttpHeaders { 5 class _HttpHeaders implements HttpHeaders {
6 _HttpHeaders() : _headers = new Map<String, List<String>>(); 6 _HttpHeaders() : _headers = new Map<String, List<String>>();
7 7
8 List<String> operator[](String name) { 8 List<String> operator[](String name) {
9 name = name.toLowerCase(); 9 name = name.toLowerCase();
10 return _headers[name]; 10 return _headers[name];
(...skipping 2083 matching lines...) Expand 10 before | Expand all | Expand 10 after
2094 // TODO(sgjesse): The path set here can contain both query and 2094 // TODO(sgjesse): The path set here can contain both query and
2095 // fragment. They should be cracked and set correctly. 2095 // fragment. They should be cracked and set correctly.
2096 return _open(method, new Uri.fromComponents( 2096 return _open(method, new Uri.fromComponents(
2097 scheme: "http", domain: host, port: port, path: path)); 2097 scheme: "http", domain: host, port: port, path: path));
2098 } 2098 }
2099 2099
2100 HttpClientConnection _open(String method, 2100 HttpClientConnection _open(String method,
2101 Uri uri, 2101 Uri uri,
2102 [_HttpClientConnection connection]) { 2102 [_HttpClientConnection connection]) {
2103 if (_shutdown) throw new HttpException("HttpClient shutdown"); 2103 if (_shutdown) throw new HttpException("HttpClient shutdown");
2104 if (method == null || uri.domain.isEmpty() == null) { 2104 if (method == null || uri.domain.isEmpty()) {
2105 throw new ArgumentError(null); 2105 throw new ArgumentError(null);
2106 } 2106 }
2107 return _prepareHttpClientConnection(method, uri, connection); 2107 return _prepareHttpClientConnection(method, uri, connection);
2108 } 2108 }
2109 2109
2110 HttpClientConnection openUrl(String method, Uri url) { 2110 HttpClientConnection openUrl(String method, Uri url) {
2111 return _openUrl(method, url); 2111 return _openUrl(method, url);
2112 } 2112 }
2113 2113
2114 HttpClientConnection _openUrl(String method, 2114 HttpClientConnection _openUrl(String method,
(...skipping 232 matching lines...) Expand 10 before | Expand all | Expand 10 after
2347 2347
2348 2348
2349 class _RedirectInfo implements RedirectInfo { 2349 class _RedirectInfo implements RedirectInfo {
2350 const _RedirectInfo(int this.statusCode, 2350 const _RedirectInfo(int this.statusCode,
2351 String this.method, 2351 String this.method,
2352 Uri this.location); 2352 Uri this.location);
2353 final int statusCode; 2353 final int statusCode;
2354 final String method; 2354 final String method;
2355 final Uri location; 2355 final Uri location;
2356 } 2356 }
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698