OLD | NEW |
1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2013, 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 import "package:expect/expect.dart"; | 5 import "package:expect/expect.dart"; |
6 import "dart:async"; | 6 import "dart:async"; |
7 import 'dart:crypto'; | 7 import 'dart:crypto'; |
8 import "dart:io"; | 8 import "dart:io"; |
9 import "dart:uri"; | |
10 import 'dart:utf'; | 9 import 'dart:utf'; |
11 | 10 |
12 class Server { | 11 class Server { |
13 HttpServer server; | 12 HttpServer server; |
14 bool secure; | 13 bool secure; |
15 int proxyHops; | 14 int proxyHops; |
16 List<String> directRequestPaths; | 15 List<String> directRequestPaths; |
17 int requestCount = 0; | 16 int requestCount = 0; |
18 | 17 |
19 Server(this.proxyHops, this.directRequestPaths, this.secure); | 18 Server(this.proxyHops, this.directRequestPaths, this.secure); |
(...skipping 741 matching lines...) Loading... |
761 testProxyFromEnviroment(); | 760 testProxyFromEnviroment(); |
762 // The two invocations of uses the same global variable for state - | 761 // The two invocations of uses the same global variable for state - |
763 // run one after the other. | 762 // run one after the other. |
764 testProxyAuthenticate(false) | 763 testProxyAuthenticate(false) |
765 .then((_) => testProxyAuthenticate(true)); | 764 .then((_) => testProxyAuthenticate(true)); |
766 // This test is not normally run. It can be used for locally testing | 765 // This test is not normally run. It can be used for locally testing |
767 // with a real proxy server (e.g. Apache). | 766 // with a real proxy server (e.g. Apache). |
768 //testRealProxy(); | 767 //testRealProxy(); |
769 //testRealProxyAuth(); | 768 //testRealProxyAuth(); |
770 } | 769 } |
OLD | NEW |