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

Side by Side Diff: sdk/lib/io/http_impl.dart

Issue 11361190: a === b -> identical(a, b) (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Address comments. Created 8 years, 1 month 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 | « sdk/lib/io/file_impl.dart ('k') | sdk/lib/io/http_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) 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 1529 matching lines...) Expand 10 before | Expand all | Expand 10 after
1540 _server.close(); 1540 _server.close();
1541 } 1541 }
1542 _server = null; 1542 _server = null;
1543 for (_HttpConnection connection in _connections) { 1543 for (_HttpConnection connection in _connections) {
1544 connection._destroy(); 1544 connection._destroy();
1545 } 1545 }
1546 _connections.clear(); 1546 _connections.clear();
1547 } 1547 }
1548 1548
1549 int get port { 1549 int get port {
1550 if (_server === null) { 1550 if (_server == null) {
1551 throw new HttpException("The HttpServer is not listening on a port."); 1551 throw new HttpException("The HttpServer is not listening on a port.");
1552 } 1552 }
1553 return _server.port; 1553 return _server.port;
1554 } 1554 }
1555 1555
1556 void set onError(void callback(e)) { 1556 void set onError(void callback(e)) {
1557 _onError = callback; 1557 _onError = callback;
1558 } 1558 }
1559 1559
1560 set sessionTimeout(int timeout) { 1560 set sessionTimeout(int timeout) {
(...skipping 1094 matching lines...) Expand 10 before | Expand all | Expand 10 after
2655 2655
2656 2656
2657 class _RedirectInfo implements RedirectInfo { 2657 class _RedirectInfo implements RedirectInfo {
2658 const _RedirectInfo(int this.statusCode, 2658 const _RedirectInfo(int this.statusCode,
2659 String this.method, 2659 String this.method,
2660 Uri this.location); 2660 Uri this.location);
2661 final int statusCode; 2661 final int statusCode;
2662 final String method; 2662 final String method;
2663 final Uri location; 2663 final Uri location;
2664 } 2664 }
OLDNEW
« no previous file with comments | « sdk/lib/io/file_impl.dart ('k') | sdk/lib/io/http_utils.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698