| OLD | NEW |
| 1 --- | 1 --- |
| 2 layout: tutorial | 2 layout: tutorial |
| 3 title: "Write HTTP Clients & Servers" | 3 title: "Write HTTP Clients & Servers" |
| 4 description: "Communicate over the internet" | 4 description: "Communicate over the internet" |
| 5 has-permalinks: true | 5 has-permalinks: true |
| 6 tutorial: | 6 tutorial: |
| 7 id: httpserver | 7 id: httpserver |
| 8 next: | 8 next: |
| 9 next-title: "Home" | 9 next-title: "Home" |
| 10 prev: cmdline/ | 10 prev: cmdline/ |
| 11 prev-title: "Write Command-Line Apps" | 11 prev-title: "Write Command-Line Apps" |
| 12 header: | 12 header: |
| 13 css: ["/docs/tutorials/httpserver/httpserver.css"] | 13 css: ["/docs/tutorials/httpserver/httpserver.css"] |
| 14 --- | 14 --- |
| 15 | 15 |
| 16 {% capture whats_the_point %} | 16 {% capture whats_the_point %} |
| 17 | 17 |
| 18 * Knowledge of Futures and Streams is a prerequisite. | 18 * Knowledge of Futures and Streams is a prerequisite. |
| 19 * The HTTP protocol allows clients and servers to communicate. | 19 * The HTTP protocol allows clients and servers to communicate. |
| 20 * The dart:io package has classes for writing HTTP programs. | 20 * The dart:io package has classes for writing HTTP programs. |
| 21 * Servers listen for requests on a host and port. | 21 * Servers listen for requests on a host and port. |
| 22 * Clients send requests using an HTTP method request. | 22 * Clients send requests using an HTTP method request. |
| 23 * The http_server package provides higher-level building blocks. | 23 * The http_server package provides higher-level building blocks. |
| 24 | 24 |
| 25 {% endcapture %} | 25 {% endcapture %} |
| 26 | 26 |
| 27 {% capture sample_links %} | 27 {% capture sample_links %} |
| 28 | 28 |
| 29 <p> This tutorial features these examples:</p> | 29 This tutorial features these examples, |
| 30 which live under the **httpserver** directory: |
| 30 | 31 |
| 31 * hello_world_server.dart | 32 * hello_world_server.dart |
| 32 * number_thinker.dart | 33 * number_thinker.dart |
| 33 * basic_writer_server.dart | 34 * basic_writer_server.dart |
| 34 * basic_writer_client.dart | 35 * basic_writer_client.dart |
| 35 * mini_file_server.dart | 36 * mini_file_server.dart |
| 36 * basic_file_server.dart | 37 * basic_file_server.dart |
| 37 * hello_world_server_secure.dart | 38 * hello_world_server_secure.dart |
| 38 | 39 |
| 39 <p> | 40 <p> |
| (...skipping 1102 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1142 * [Get Input from a Form](/docs/tutorials/forms/) shows how to make a POST | 1143 * [Get Input from a Form](/docs/tutorials/forms/) shows how to make a POST |
| 1143 request from a browser-based client using an HTML form. | 1144 request from a browser-based client using an HTML form. |
| 1144 It also discusses the related server. | 1145 It also discusses the related server. |
| 1145 | 1146 |
| 1146 * Be sure to investigate the other packages on | 1147 * Be sure to investigate the other packages on |
| 1147 <a href="https://pub.dartlang.org/" target="_blank">pub.dartlang.org</a>. | 1148 <a href="https://pub.dartlang.org/" target="_blank">pub.dartlang.org</a>. |
| 1148 | 1149 |
| 1149 {% endcapture %} | 1150 {% endcapture %} |
| 1150 | 1151 |
| 1151 {% include tutorial.html %} | 1152 {% include tutorial.html %} |
| OLD | NEW |