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

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

Issue 300043011: Add WebSockets to Observatory. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Deploy Created 6 years, 7 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
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 part of dart.io; 5 part of dart.io;
6 6
7 const int _OUTGOING_BUFFER_SIZE = 8 * 1024; 7 const int _OUTGOING_BUFFER_SIZE = 8 * 1024;
8 8
9 class _HttpIncoming extends Stream<List<int>> { 9 class _HttpIncoming extends Stream<List<int>> {
10 final int _transferLength; 10 final int _transferLength;
(...skipping 2441 matching lines...) Expand 10 before | Expand all | Expand 10 after
2452 2452
2453 InternetAddress get address => _socket.address; 2453 InternetAddress get address => _socket.address;
2454 2454
2455 InternetAddress get remoteAddress => _socket.remoteAddress; 2455 InternetAddress get remoteAddress => _socket.remoteAddress;
2456 2456
2457 int get remotePort => _socket.remotePort; 2457 int get remotePort => _socket.remotePort;
2458 2458
2459 bool setOption(SocketOption option, bool enabled) { 2459 bool setOption(SocketOption option, bool enabled) {
2460 return _socket.setOption(option, enabled); 2460 return _socket.setOption(option, enabled);
2461 } 2461 }
2462
2463 Map _toJSON(bool ref) => _socket._toJSON(ref);
2462 } 2464 }
2463 2465
2464 2466
2465 class _AuthenticationScheme { 2467 class _AuthenticationScheme {
2466 final int _scheme; 2468 final int _scheme;
2467 2469
2468 static const UNKNOWN = const _AuthenticationScheme(-1); 2470 static const UNKNOWN = const _AuthenticationScheme(-1);
2469 static const BASIC = const _AuthenticationScheme(0); 2471 static const BASIC = const _AuthenticationScheme(0);
2470 static const DIGEST = const _AuthenticationScheme(1); 2472 static const DIGEST = const _AuthenticationScheme(1);
2471 2473
(...skipping 228 matching lines...) Expand 10 before | Expand all | Expand 10 after
2700 const _RedirectInfo(this.statusCode, this.method, this.location); 2702 const _RedirectInfo(this.statusCode, this.method, this.location);
2701 } 2703 }
2702 2704
2703 String _getHttpVersion() { 2705 String _getHttpVersion() {
2704 var version = Platform.version; 2706 var version = Platform.version;
2705 // Only include major and minor version numbers. 2707 // Only include major and minor version numbers.
2706 int index = version.indexOf('.', version.indexOf('.') + 1); 2708 int index = version.indexOf('.', version.indexOf('.') + 1);
2707 version = version.substring(0, index); 2709 version = version.substring(0, index);
2708 return 'Dart/$version (dart:io)'; 2710 return 'Dart/$version (dart:io)';
2709 } 2711 }
OLDNEW
« no previous file with comments | « runtime/bin/vmservice/client/lib/src/elements/service_view.dart ('k') | sdk/lib/io/websocket_impl.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698