| OLD | NEW |
| 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 pub.barback.web_socket_api; | |
| 6 | |
| 7 import 'dart:async'; | 5 import 'dart:async'; |
| 8 import 'dart:io'; | 6 import 'dart:io'; |
| 9 | 7 |
| 10 import 'package:http_parser/http_parser.dart'; | 8 import 'package:http_parser/http_parser.dart'; |
| 11 import 'package:path/path.dart' as path; | 9 import 'package:path/path.dart' as path; |
| 12 import 'package:json_rpc_2/json_rpc_2.dart' as json_rpc; | 10 import 'package:json_rpc_2/json_rpc_2.dart' as json_rpc; |
| 13 | 11 |
| 14 import '../exit_codes.dart' as exit_codes; | 12 import '../exit_codes.dart' as exit_codes; |
| 15 import '../io.dart'; | 13 import '../io.dart'; |
| 16 import '../log.dart' as log; | 14 import '../log.dart' as log; |
| (...skipping 283 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 300 } | 298 } |
| 301 | 299 |
| 302 /// The pub-specific JSON RPC error codes. | 300 /// The pub-specific JSON RPC error codes. |
| 303 class _Error { | 301 class _Error { |
| 304 /// The specified directory is not being served. | 302 /// The specified directory is not being served. |
| 305 static const NOT_SERVED = 1; | 303 static const NOT_SERVED = 1; |
| 306 | 304 |
| 307 /// The specified directory overlaps one or more ones already being served. | 305 /// The specified directory overlaps one or more ones already being served. |
| 308 static const OVERLAPPING = 2; | 306 static const OVERLAPPING = 2; |
| 309 } | 307 } |
| OLD | NEW |