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

Unified Diff: pkg/http_server/lib/http_server.dart

Issue 756493002: pkg/http_server: move to multi-lib layout (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: readme fixup Created 6 years, 1 month 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « pkg/http_server/README.md ('k') | pkg/http_server/lib/src/http_body.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/http_server/lib/http_server.dart
diff --git a/pkg/http_server/lib/http_server.dart b/pkg/http_server/lib/http_server.dart
index afaf71c383b52b87717c95d9caa779c12ac04f3b..bcd99dfd81d9d86eed290048b61c4f805c7ebc4d 100644
--- a/pkg/http_server/lib/http_server.dart
+++ b/pkg/http_server/lib/http_server.dart
@@ -26,11 +26,11 @@
* import 'dart:io';
* import 'dart:async';
* import 'package:http_server/http_server.dart';
- *
+ *
* void main() {
* var staticFiles = new VirtualDirectory('.')
* ..allowDirectoryListing = true;
- *
+ *
* runZoned(() {
* HttpServer.bind('0.0.0.0', 7777).then((server) {
* print('Server running');
@@ -41,25 +41,25 @@
* }
*
* ## Virtual directory
- *
+ *
* The [VirtualDirectory] class makes it easy to serve static content
* from the file system. It supports:
- *
+ *
* * Range-based requests.
* * If-Modified-Since based caching.
* * Automatic GZip-compression of content.
* * Following symlinks, either throughout the system or inside
* a jailed root.
* * Directory listing.
- *
+ *
* See [VirtualDirectory] for more information.
- *
+ *
* ## Virtual host
- *
+ *
* The [VirtualHost] class helps to serve multiple hosts on the same
* address, by using the `Host` field of the incoming requests. It also
* works with wildcards for sub-domains.
- *
+ *
* var virtualHost = new VirtualHost(server);
* // Filter out on a specific host
* var stream1 = virtualServer.addHost('static.myserver.com');
@@ -67,24 +67,14 @@
* var stream2 = virtualServer.addHost('*.myserver.com');
* // Requets not matching any hosts.
* var stream3 = virtualServer.unhandled;
- *
+ *
* See [VirtualHost] for more information.
*
* [pub]: http://pub.dartlang.org/packages/http_server
*/
library http_server;
-import 'dart:async';
-import 'dart:convert';
-import 'dart:io';
-
-import 'package:mime/mime.dart';
-import "package:path/path.dart";
-
-part 'src/http_body.dart';
-part 'src/http_body_impl.dart';
-part 'src/http_multipart_form_data.dart';
-part 'src/http_multipart_form_data_impl.dart';
-part 'src/virtual_directory.dart';
-part 'src/virtual_host.dart';
-
+export 'src/http_body.dart';
+export 'src/http_multipart_form_data.dart';
+export 'src/virtual_directory.dart';
+export 'src/virtual_host.dart';
« no previous file with comments | « pkg/http_server/README.md ('k') | pkg/http_server/lib/src/http_body.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698