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

Side by Side Diff: pkg/analysis_server/lib/http_server.dart

Issue 544693002: Split channels library. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 3 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 | pkg/analysis_server/lib/src/analysis_manager.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) 2014, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2014, 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 http.server; 5 library http.server;
6 6
7 import 'dart:async'; 7 import 'dart:async';
8 import 'dart:io'; 8 import 'dart:io';
9 9
10 import 'package:analysis_server/src/channel.dart'; 10 import 'package:analysis_server/src/channel/web_socket_channel.dart';
11 import 'package:analysis_server/src/get_handler.dart'; 11 import 'package:analysis_server/src/get_handler.dart';
12 import 'package:analysis_server/src/socket_server.dart'; 12 import 'package:analysis_server/src/socket_server.dart';
13 13
14 /** 14 /**
15 * Instances of the class [HttpServer] implement a simple HTTP server. The 15 * Instances of the class [HttpServer] implement a simple HTTP server. The
16 * primary responsibility of this server is to listen for an UPGRADE request and 16 * primary responsibility of this server is to listen for an UPGRADE request and
17 * to start an analysis server. 17 * to start an analysis server.
18 */ 18 */
19 class HttpAnalysisServer { 19 class HttpAnalysisServer {
20 /** 20 /**
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after
93 _server = HttpServer.bind(InternetAddress.LOOPBACK_IP_V4, port); 93 _server = HttpServer.bind(InternetAddress.LOOPBACK_IP_V4, port);
94 _server.then(_handleServer); 94 _server.then(_handleServer);
95 } 95 }
96 96
97 void close() { 97 void close() {
98 _server.then((HttpServer server) { 98 _server.then((HttpServer server) {
99 server.close(); 99 server.close();
100 }); 100 });
101 } 101 }
102 } 102 }
OLDNEW
« no previous file with comments | « no previous file | pkg/analysis_server/lib/src/analysis_manager.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698