OLD | NEW |
1 // Copyright (c) 2015, the Dartino project authors. Please see the AUTHORS file | 1 // Copyright (c) 2015, the Dartino 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 import 'dart:fletch'; | 5 import 'dart:dartino'; |
6 import 'dart:fletch.os' as os; | 6 import 'dart:dartino.os' as os; |
7 import 'dart:typed_data'; | 7 import 'dart:typed_data'; |
8 | 8 |
9 import 'package:file/file.dart'; | 9 import 'package:file/file.dart'; |
10 import 'package:http/http.dart'; | 10 import 'package:http/http.dart'; |
11 import 'package:socket/socket.dart'; | 11 import 'package:socket/socket.dart'; |
12 | 12 |
13 abstract class _Connection { | 13 abstract class _Connection { |
14 final String host; | 14 final String host; |
15 final int port; | 15 final int port; |
16 final bool open; | 16 final bool open; |
(...skipping 136 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
153 } | 153 } |
154 | 154 |
155 if (verbose) { | 155 if (verbose) { |
156 print('Response $code on request for $resource'); | 156 print('Response $code on request for $resource'); |
157 } | 157 } |
158 | 158 |
159 socket.write(response); | 159 socket.write(response); |
160 socket.close(); | 160 socket.close(); |
161 } | 161 } |
162 } | 162 } |
OLD | NEW |