OLD | NEW |
| 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 |
| 3 // BSD-style license that can be found in the LICENSE file. |
| 4 |
1 library get.handler; | 5 library get.handler; |
2 | 6 |
3 import 'dart:io'; | 7 import 'dart:io'; |
4 | 8 |
5 import 'package:analyzer/src/generated/engine.dart'; | 9 import 'package:analyzer/src/generated/engine.dart'; |
6 | 10 |
7 import 'package:analysis_server/src/analysis_server.dart'; | 11 import 'package:analysis_server/src/analysis_server.dart'; |
8 | 12 |
9 /** | 13 /** |
10 * Instances of the class [GetHandler] handle GET requests | 14 * Instances of the class [GetHandler] handle GET requests. |
11 */ | 15 */ |
12 class GetHandler { | 16 class GetHandler { |
13 /** | 17 /** |
14 * The path used to request the status of the analysis server as a whole. | 18 * The path used to request the status of the analysis server as a whole. |
15 */ | 19 */ |
16 static const String STATUS_PATH = '/status'; | 20 static const String STATUS_PATH = '/status'; |
17 | 21 |
18 /** | 22 /** |
19 * The analysis server whose status is to be reported on, or `null` if the | 23 * The analysis server whose status is to be reported on, or `null` if the |
20 * server has not yet been created. | 24 * server has not yet been created. |
(...skipping 126 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
147 response.write(value); | 151 response.write(value); |
148 response.write('</td>'); | 152 response.write('</td>'); |
149 }); | 153 }); |
150 if (header) { | 154 if (header) { |
151 response.write('</th>'); | 155 response.write('</th>'); |
152 } else { | 156 } else { |
153 response.write('</tr>'); | 157 response.write('</tr>'); |
154 } | 158 } |
155 } | 159 } |
156 } | 160 } |
OLD | NEW |