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

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

Issue 2894883002: Remove more libraries directives from server (Closed)
Patch Set: Created 3 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
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 analysis_server.src.server.http_server;
6
7 import 'dart:async'; 5 import 'dart:async';
8 import 'dart:io'; 6 import 'dart:io';
9 7
10 import 'package:analysis_server/src/channel/web_socket_channel.dart'; 8 import 'package:analysis_server/src/channel/web_socket_channel.dart';
11 import 'package:analysis_server/src/socket_server.dart'; 9 import 'package:analysis_server/src/socket_server.dart';
12 import 'package:analysis_server/src/status/get_handler.dart'; 10 import 'package:analysis_server/src/status/get_handler.dart';
13 import 'package:analysis_server/src/status/get_handler2.dart'; 11 import 'package:analysis_server/src/status/get_handler2.dart';
14 12
15 /** 13 /**
16 * Instances of the class [HttpServer] implement a simple HTTP server. The 14 * Instances of the class [HttpServer] implement a simple HTTP server. The
(...skipping 124 matching lines...) Expand 10 before | Expand all | Expand 10 after
141 */ 139 */
142 void _returnUnknownRequest(HttpRequest request) { 140 void _returnUnknownRequest(HttpRequest request) {
143 HttpResponse response = request.response; 141 HttpResponse response = request.response;
144 response.statusCode = HttpStatus.NOT_FOUND; 142 response.statusCode = HttpStatus.NOT_FOUND;
145 response.headers.contentType = 143 response.headers.contentType =
146 new ContentType("text", "plain", charset: "utf-8"); 144 new ContentType("text", "plain", charset: "utf-8");
147 response.write('Not found'); 145 response.write('Not found');
148 response.close(); 146 response.close();
149 } 147 }
150 } 148 }
OLDNEW
« no previous file with comments | « pkg/analysis_server/lib/src/server/driver.dart ('k') | pkg/analysis_server/lib/src/server/stdio_server.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698