Skip to content

Commit 4d336e7

Browse files
glynosdeanberris
authored andcommitted
Minor doc updates; Replaced from all examples.
1 parent 2c6bc4c commit 4d336e7

File tree

5 files changed

+28
-58
lines changed

5 files changed

+28
-58
lines changed

boost/network/uri/http/detail/uri_parts.hpp

+2
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@
88

99
#include <boost/network/uri/detail/uri_parts.hpp>
1010
#include <boost/network/traits/string.hpp>
11+
#include <boost/optional.hpp>
12+
#include <boost/cstdint.hpp>
1113

1214
namespace boost { namespace network { namespace uri {
1315

libs/network/doc/http.qbk

+22
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,25 @@ The `hello_world` request handler is given as a template argument to
9393
and port, and the `hello_world` handler object is passed as the third
9494
argument.
9595

96+
[heading Using `http::server`]
97+
98+
While this example shows how easy it is to create and use a single
99+
server instance, typically we want to do a lot more. An embedder
100+
might store several `http::server` instances and call their `run`
101+
functions in a thread pool.
102+
103+
`http::basic_server` can be further extended according to the supplied
104+
tag, so that it may implement specific functionality including, but
105+
not limited to:
106+
107+
* HTTP 1.0 only or HTTP 1.1 only
108+
* WebDAV support
109+
* Static files
110+
* Request pipelining
111+
112+
As the project continues to develop, more of this functionality will
113+
be implemented.
114+
96115
[endsect] [/ http_server_example]
97116

98117
[section:http_client_example HTTP Client]
@@ -223,6 +242,9 @@ follow HTTP redirect(s) (300..307) by looking at the "Location" header
223242
provided by the response(s); headers present in the original request
224243
are preserved in the subsequent request(s).
225244

245+
As with the `http::server`, the client can be extended to support
246+
different characteristics.
247+
226248
[endsect] [/ http_client_example]
227249

228250
[endsect] [/ http]

libs/network/doc/quick_start.cpp

-54
This file was deleted.

libs/network/example/http/hello_world_server.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
*/
1414
#include <boost/network/protocol/http/server.hpp>
1515
#include <iostream>
16-
f
16+
1717

1818
namespace http = boost::network::http;
1919

libs/network/example/simple_wget.cpp

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright (c) Glyn Matthews 2009.
1+
// Copyright (c) Glyn Matthews 2009, 2010.
22
// Distributed under the Boost Software License, Version 1.0.
33
// (See accompanying file LICENSE_1_0.txt or copy at
44
// http://www.boost.org/LICENSE_1_0.txt)
@@ -10,11 +10,11 @@
1010
features, such as content-type detection, but it does the
1111
fundamental things the same.
1212
13-
It demonstrates the use the http::uri and the http::client.
13+
It demonstrates the use the `http::uri` and the `http::client`.
1414
*/
1515

1616

17-
#include <boost/network.hpp>
17+
#include <boost/network/protocol/http/client.hpp>
1818
#include <boost/network/uri/http/uri.hpp>
1919
#include <string>
2020
#include <fstream>

0 commit comments

Comments
 (0)