Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commite5b0bed

Browse files
committed
Documentation updates.
1 parent16d2952 commite5b0bed

28 files changed

+359
-312
lines changed

‎libs/network/doc/html/_sources/index.txt

Lines changed: 31 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
.. :Date: Nov 9, 2010
1616
.. :Version: 0.8
1717
.. :Description: Complete user documentation, with examples, for the :mod:`cpp-netlib`.
18-
.. :Copyright: Copyright Glyn Matthews, Dean Michael Berris 2008-2010.
18+
.. :Copyright: Copyright Glyn Matthews, Dean Michael Berris 2008-2011.
1919
.. Distributed under the Boost Software License, Version
2020
.. 1.0. (See accompanying file LICENSE_1_0.txt or copy at
2121
.. http://www.boost.org/LICENSE_1_0.txt)
@@ -40,7 +40,7 @@ The :mod:`cpp-netlib` allows you to write semantically consistent code for
4040
making different kinds of higher level network applications.
4141

4242
The library allows for writing simple code for simple C++ HTTP client
43-
applications like:
43+
applications:
4444

4545
.. code-block:: c++
4646

@@ -53,6 +53,34 @@ applications like:
5353
client::response response_ = client_.get(request);
5454
std::string body = body(response_);
5555

56+
The library also allows for writing simple C++ HTTP servers:
57+
58+
.. code-block:: c++
59+
60+
namespace http = boost::network::http;
61+
62+
struct handler;
63+
typedef http::server<handler> http_server;
64+
65+
struct handler {
66+
void operator() (http_server::request const & request_,
67+
http_server::response & response_) {
68+
response = http_server::response::stock_reply(
69+
http_server::response::ok, "Hello, world!");
70+
}
71+
72+
void log(http_server::string_type const & info) {
73+
std::cerr << "ERROR: " << info << '\n';
74+
}
75+
76+
};
77+
78+
int main(int arg, char * argv[]) {
79+
handler handler_;
80+
http_server server_("0.0.0.0", "8000", handler_);
81+
server_.run();
82+
}
83+
5684
The :mod:`cpp-netlib` is being developed for eventual submission to Boost_.
5785

5886
Download
@@ -87,7 +115,7 @@ Contents
87115
--------
88116

89117
.. toctree::
90-
:maxdepth:2
118+
:maxdepth:3
91119

92120
whats_new.rst
93121
getting_started.rst
Lines changed: 106 additions & 172 deletions
Original file line numberDiff line numberDiff line change
@@ -1,186 +1,120 @@
1-
@importurl(reset-fonts-grids.css);
2-
3-
html,body {background-image:url(./orange-background.jpg);background-repeat:no-repeat;background-position:left top;background-attachment:fixed;background-color:black}
4-
body {font:12pt"Times New Roman", Lucida, serif;color:black}
5-
#custom-doc {width:80%;*width:720px;min-width:720px;max-width:960px;margin:auto;text-align:left;padding-top:16px;margin-top:0}
6-
#hd {padding:4px012px0}
7-
#bd {background:#C5D88A}
8-
#ft {color:#C5D88A;font-size:90%;padding-bottom:2em}
9-
10-
pre {
11-
font-family: Monaco, monospace;
12-
font-size:14px;
13-
background:#333;
14-
background:-moz-linear-gradient(-90deg,#333,#22260%);
15-
background:-webkit-gradient(linear,0 top,0 bottom,from(#333),to(#222),color-stop(60%,#222));
16-
border-width:1px0;
17-
margin:1em0;
18-
padding:.3em.4em;
19-
overflow: auto;
20-
line-height:1.3em;
21-
color:#CCC;
22-
border-radius:3px;
23-
-moz-border-radius:3px;
24-
-webkit-border-radius:3px;
25-
padding:1em;
26-
}
27-
28-
1+
@importurl('reset-fonts-grids.css');html,body{background-image:url('./orange-background.jpg');background-repeat:no-repeat;background-position:left top;background-attachment:fixed;background-color:black;}
2+
body{font:12pt sans-serif;color:black;}
3+
#custom-doc{width:80%;*width:720px;min-width:720px;max-width:960px;margin:auto;text-align:left;padding-top:16px;margin-top:0;}
4+
#hd{padding:4px012px0;}
5+
#bd{background:#C5D88A;}
6+
#ft{color:#C5D88A;font-size:90%;padding-bottom:2em;}
7+
pre{font-family:Monaco,monospace;font-size:14px;background:#333;background:-moz-linear-gradient(-90deg,#333,#22260%);background:-webkit-gradient(linear,0 top,0 bottom,from(#333),to(#222),color-stop(60%,#222));border-width:1px0;margin:1em0;padding:.3em.4em;overflow:auto;line-height:1.3em;color:#CCC;border-radius:3px;-moz-border-radius:3px;-webkit-border-radius:3px;padding:1em;}
298
/*** links ***/
30-
a {text-decoration: none;font-weight: bold}
31-
aimg {border: none}
32-
a:link,a:visited {color:#800000}
33-
#bda:link,#bda:visited {color:#800000;text-decoration:underline}
34-
#bd#sidebara:link,#bd#sidebara:visited {color:#8B4513;text-decoration:none}
35-
a:hover {color:#000}
36-
#bda:hover {background-color:#FF9955;color:black;text-decoration:none}
37-
#bd#sidebara:hover {color:#FF9955;background:none}
38-
h2a,h3a,h4a {text-decoration:none!important}
39-
a.referenceem {color:#FF9955;font-style:normal;font-weight:bold;}
40-
9+
a{text-decoration:none;font-weight:bold}
10+
aimg{border:none}
11+
a:link,a:visited{color:#800000}
12+
#bda:link,#bda:visited{color:#800000;text-decoration:underline}
13+
#bd#sidebara:link,#bd#sidebara:visited{color:#8B4513;text-decoration:none}
14+
a:hover{color:#000}
15+
#bda:hover{background-color:#FF9955;color:black;text-decoration:none}
16+
#bd#sidebara:hover{color:#FF9955;background:none}
17+
h2a,h3a,h4a{text-decoration:none!important}
18+
a.referenceem{color:#FF9955;font-style:normal;font-weight:bold;}
4119
/*** sidebar ***/
42-
#sidebardiv.sphinxsidebarwrapper {font-size:92%;margin-right:14px}
43-
#sidebarh3,#sidebarh4 {color:#487858;font-size:125%}
44-
#sidebara {color:#8B4513}
45-
#sidebarulul {margin-top:0;margin-bottom:0}
46-
#sidebarli {margin-top:0.2em;margin-bottom:0.2em}
47-
20+
#sidebardiv.sphinxsidebarwrapper{font-size:92%;margin-right:14px}
21+
#sidebarh3,#sidebarh4{color:#487858;font-size:125%}
22+
#sidebara{color:#8B4513}
23+
#sidebarulul{margin-top:0;margin-bottom:0}
24+
#sidebarli{margin-top:0.2em;margin-bottom:0.2em;list-style-position:inside;list-style-type:square;}
4825
/*** nav ***/
49-
div.nav {margin:0;font-size:12px;text-align: right;color:#487858}
50-
div.nava:link,div.nava:visited {color: white }
51-
#hddiv.nav {margin-top:-27px}
52-
#ftdiv.nav {margin-bottom:-18px}
53-
#hdh1a {color:#EFFFEF}
54-
#global-nav {position:absolute;top:5px;margin-left:-5px;padding:7px0;color:#263E2B}
55-
#global-nava {padding:04px}
56-
#global-nava.about {padding-left:0}
57-
#global-nava {color:#fff}
58-
26+
div.nav{margin:0;font-size:12px;text-align:right;color:#487858}
27+
div.nava:link,div.nava:visited{color:white}
28+
#hddiv.nav{margin-top:-27px}
29+
#ftdiv.nav{margin-bottom:-18px}
30+
#hdh1a{color:#EFFFEF}
31+
#global-nav{position:absolute;top:5px;margin-left:-5px;padding:7px0;color:#263E2B}
32+
#global-nava{padding:04px}
33+
#global-nava.about{padding-left:0}
34+
#global-nava{color:#fff}
5935
/*** content ***/
60-
#yui-main {
61-
-moz-border-radius:3px;
62-
-moz-box-shadow:009pxrgba(0,0,0,0.5);
63-
-webkit-border-radius:3px;
64-
-webkit-box-shadow:009pxrgba(0,0,0,0.5);
65-
border-radius:3px;
66-
box-shadow:009pxrgba(0,0,0,0.5);
67-
background:none repeat scroll00#F0F7F0;
68-
}
69-
#yui-maindiv.yui-b {position: relative}
70-
#yui-maindiv.yui-b {background:#FFF;color:#164B2B;padding:0.3em2em1em2em}
71-
36+
#yui-main{-moz-border-radius:3px;-moz-box-shadow:009pxrgba(0,0,0,0.5);-webkit-border-radius:3px;-webkit-box-shadow:009pxrgba(0,0,0,0.5);border-radius:3px;box-shadow:009pxrgba(0,0,0,0.5);background:none repeat scroll00#F0F7F0;}
37+
#yui-maindiv.yui-b{position:relative}
38+
#yui-maindiv.yui-b{background:#FFF;color:#164B2B;padding:0.3em2em1em2em}
7239
/*** basic styles ***/
73-
dd {margin-left:15px}
74-
h1,h2,h3,h4 {margin-top:1em;font-weight:normal}
75-
h1 {font-size:218%;font-weight:bold;margin-top:0.6em;margin-bottom:.4em;line-height:1.1em}
76-
h2 {font-size:175%;font-weight:bold;margin-bottom:.6em;line-height:1.2em;color:#092e20}
77-
h3 {font-size:150%;font-weight:bold;margin-bottom:.2em;color:#487858}
78-
h4 {font-size:125%;font-weight:bold;margin-top:1.5em;margin-bottom:3px}
79-
div.figure {text-align: center}
80-
div.figurep.caption {font-size:1em;margin-top:0;margin-bottom:1.5em;color: black}
81-
hr {color:#ccc;background-color:#ccc;height:1px;border:0}
82-
p,ul,dl {margin-top:.6em;color:#333}
83-
#yui-maindiv.yui-bimg {max-width:50em;margin-left: auto;margin-right: auto;display: block;margin-top:10px;margin-bottom:10px}
84-
caption {font-size:1em;font-weight:bold;margin-top:0.5em;margin-bottom:0.5em;margin-left:2px;text-align: center}
85-
blockquote {padding:01em;margin:1em0;font:"Times New Roman", serif;color:#234f32}
86-
strong {font-weight: bold}
87-
em {font-style: italic}
88-
ins {font-weight: bold;text-decoration: none}
89-
40+
dd{margin-left:15px}
41+
h1,h2,h3,h4{margin-top:1em;font-weight:normal}
42+
h1{font-size:218%;font-weight:bold;margin-top:0.6em;margin-bottom:.4em;line-height:1.1em}
43+
h2{font-size:175%;font-weight:bold;margin-bottom:.6em;line-height:1.2em;color:#092e20}
44+
h3{font-size:150%;font-weight:bold;margin-bottom:.2em;color:#487858}
45+
h4{font-size:125%;font-weight:bold;margin-top:1.5em;margin-bottom:3px}
46+
div.figure{text-align:center}
47+
div.figurep.caption{font-size:1em;margin-top:0;margin-bottom:1.5em;color:black}
48+
hr{color:#ccc;background-color:#ccc;height:1px;border:0}
49+
p,ul,dl{margin-top:.6em;color:#333}
50+
#yui-maindiv.yui-bimg{max-width:50em;margin-left:auto;margin-right:auto;display:block;margin-top:10px;margin-bottom:10px}
51+
caption{font-size:1em;font-weight:bold;margin-top:0.5em;margin-bottom:0.5em;margin-left:2px;text-align:center}
52+
blockquote{padding:01em;margin:1em0;font:"Times New Roman",serif;color:#234f32}
53+
strong{font-weight:bold}
54+
em{font-style:italic}
55+
ins{font-weight:bold;text-decoration:none}
9056
/*** lists ***/
91-
ol.arabicli {list-style-type: decimal}
92-
ulli {font-size:1em}
93-
olli {margin-bottom:.4em}
94-
ulul {padding-left:1.2em}
95-
ululul {padding-left:1em}
96-
ul.linklist,ul.toc {padding-left:0}
97-
ul.tocul {margin-left:.6em}
98-
ul.toculli {list-style-type:square}
99-
ul.tocululli {list-style-type:disc}
100-
ul.linklistli,ul.tocli {list-style-type:none}
101-
dt {font-weight:bold;margin-top:.5em;font-size:1em}
102-
dd {margin-bottom:.8em}
103-
ol.toc {margin-bottom:2em}
104-
ol.tocli {font-size:125%;padding:.5em;line-height:1.2em;clear: right}
105-
ol.tocli.b {background-color:#E0FFB8}
106-
ol.toclia:hover {background-color: transparent!important;text-decoration: underline!important}
107-
ol.tocspan.release-date {color:#487858;float: right;font-size:85%;padding-right:.5em}
108-
ol.tocspan.comment-count {font-size:75%;color:#999}
109-
ul.simpleli {list-style-type: disc;margin-left:2em}
110-
57+
ol.arabicli{list-style-type:decimal}
58+
ulli{font-size:1em}
59+
olli{margin-bottom:.4em}
60+
ulul{padding-left:1.2em}
61+
ululul{padding-left:1em}
62+
ul.linklist,ul.toc{padding-left:0}
63+
ul.tocul{margin-left:.6em}
64+
ul.toculli{list-style-type:square}
65+
ul.tocululli{list-style-type:disc}
66+
ul.linklistli,ul.tocli{list-style-type:none}
67+
dt{font-weight:bold;margin-top:.5em;font-size:1em}
68+
dd{margin-bottom:.8em}
69+
ol.toc{margin-bottom:2em}
70+
ol.tocli{font-size:125%;padding:.5em;line-height:1.2em;clear:right}
71+
ol.tocli.b{background-color:#E0FFB8}
72+
ol.toclia:hover{background-color:transparent!important;text-decoration:underline!important}
73+
ol.tocspan.release-date{color:#487858;float:right;font-size:85%;padding-right:.5em}
74+
ol.tocspan.comment-count{font-size:75%;color:#999}
75+
ul.simpleli{list-style-type:disc;margin-left:2em}
11176
/*** tables ***/
112-
table {color:#000;margin-bottom:1em;width:100%}
113-
table.docutilstdp {margin-top:0;margin-bottom:.5em}
114-
table.docutilstd,table.docutilsth {border-bottom:1px solid#dfdfdf;padding:4px2px}
115-
table.docutilstheadth {border-bottom:2px solid#dfdfdf;text-align:left;font-weight: bold;#487858-space: nowrap}
116-
table.docutilstheadthp {margin:0;padding:0}
117-
table.docutils {border-collapse:collapse}
118-
77+
table{color:#000;margin-bottom:1em;width:100%}
78+
table.docutilstdp{margin-top:0;margin-bottom:.5em}
79+
table.docutilstd,table.docutilsth{border-bottom:1px solid#dfdfdf;padding:4px2px}
80+
table.docutilstheadth{border-bottom:2px solid#dfdfdf;text-align:left;font-weight:bold;#487858-space:nowrap}
81+
table.docutilstheadthp{margin:0;padding:0}
82+
table.docutils{border-collapse:collapse}
11983
/*** code blocks ***/
120-
.literal {#487858-space:nowrap}
121-
.literal {color:#234f32}
122-
#sidebar .literal {color:#487858;background:transparent;font-size:11px}
123-
h4 .literal {color:#234f32;font-size:13px}
124-
125-
dt .literal,table .literal {background:none}
126-
#bda.reference {text-decoration: none}
127-
#bda.referencett.literal {border-bottom:1px#234f32 dotted}
128-
84+
.literal{#487858-space:nowrap}
85+
.literal{color:#234f32}
86+
#sidebar .literal{color:#487858;background:transparent;font-size:11px}
87+
h4 .literal{color:#234f32;font-size:13px}
88+
dt .literal,table .literal{background:none}
89+
#bda.reference{text-decoration:none}
90+
#bda.referencett.literal{border-bottom:1px#234f32 dotted}
12991
/*** notes & admonitions ***/
130-
.note, .admonition {
131-
padding:.8em1em.8em;margin:1em0;background-color:#E8FFE8;
132-
-moz-border-radius:3px;
133-
-moz-box-shadow:01px2pxrgba(0,0,0,0.3);
134-
-webkit-border-radius:3px;
135-
-webkit-box-shadow:01px2pxrgba(0,0,0,0.3);
136-
border-radius:3px;
137-
box-shadow:01px2pxrgba(0,0,0,0.3);
138-
}
139-
.admonition-title {font-weight:bold;margin-top:0!important;margin-bottom:0!important}
140-
.admonition .last {margin-bottom:0!important}
141-
div.admonition-philosophy {padding-left:65px;background:url(docicons-philosophy.png).8em.8em no-repeat}
142-
div.admonition-behind-the-scenes {padding-left:65px;background:url(docicons-behindscenes.png).8em.8em no-repeat}
143-
92+
.note,.admonition{padding:.8em1em.8em;margin:1em0;background-color:#E8FFE8;-moz-border-radius:3px;-moz-box-shadow:01px2pxrgba(0,0,0,0.3);-webkit-border-radius:3px;-webkit-box-shadow:01px2pxrgba(0,0,0,0.3);border-radius:3px;box-shadow:01px2pxrgba(0,0,0,0.3);}
93+
.admonition-title{font-weight:bold;margin-top:0!important;margin-bottom:0!important}
94+
.admonition .last{margin-bottom:0!important}
95+
div.admonition-philosophy{padding-left:65px;background:url(docicons-philosophy.png).8em.8em no-repeat}
96+
div.admonition-behind-the-scenes{padding-left:65px;background:url(docicons-behindscenes.png).8em.8em no-repeat}
14497
/*** versoinadded/changes ***/
145-
div.versionadded,div.versionchanged { }
146-
div.versionaddedspan.title,div.versionchangedspan.title {font-weight: bold}
147-
98+
div.versionadded,div.versionchanged{}
99+
div.versionaddedspan.title,div.versionchangedspan.title{font-weight:bold}
148100
/*** p-links ***/
149-
a.headerlink {color:#c60f0f;font-size:0.8em;padding:04px04px;text-decoration: none;visibility: hidden}
150-
h1:hover>a.headerlink,h2:hover>a.headerlink,h3:hover>a.headerlink,h4:hover>a.headerlink,h5:hover>a.headerlink,h6:hover>a.headerlink,dt:hover>a.headerlink {visibility: visible}
151-
101+
a.headerlink{color:#c60f0f;font-size:0.8em;padding:04px04px;text-decoration:none;visibility:hidden}
102+
h1:hover>a.headerlink,h2:hover>a.headerlink,h3:hover>a.headerlink,h4:hover>a.headerlink,h5:hover>a.headerlink,h6:hover>a.headerlink,dt:hover>a.headerlink{visibility:visible}
152103
/*** index ***/
153-
table.indextabletd {text-align: left;vertical-align: top}
154-
table.indextabledl,table.indextabledd {margin-top:0;margin-bottom:0}
155-
table.indextabletr.pcap {height:10px}
156-
table.indextabletr.cap {margin-top:10px;background-color:#f2f2f2}
157-
104+
table.indextabletd{text-align:left;vertical-align:top}
105+
table.indextabledl,table.indextabledd{margin-top:0;margin-bottom:0}
106+
table.indextabletr.pcap{height:10px}
107+
table.indextabletr.cap{margin-top:10px;background-color:#f2f2f2}
158108
/*** page-specific overrides ***/
159-
160-
div#contentsul {margin-bottom:0}
161-
div#contentsulli {margin-bottom:0}
162-
div#contentsululli {margin-top:0.3em}
163-
109+
div#contentsul{margin-bottom:0}
110+
div#contentsulli{margin-bottom:0}
111+
div#contentsululli{margin-top:0.3em}
164112
/*** IE hacks ***/
165-
*pre {
166-
}
167-
.footer {
168-
color: white;
169-
}
170-
171-
.footera {
172-
color:#333;
173-
}
174-
175-
img {
176-
margin:10px010px0;
177-
}#indexp.rubric {font-size:150%;font-weight:normal;margin-bottom:.2em;color:#252; }
178-
179-
#indexdiv.sectiondt {font-weight: normal; }
180-
181-
tt.py-exc.literal {
182-
color: red;
183-
}
184-
185-
186-
tt.xrefspan.pre {color: green; }
113+
*pre{}
114+
.footer{color:white;}
115+
.footera{color:#333;}
116+
img{margin:10px010px0;}
117+
#indexp.rubric{font-size:150%;font-weight:normal;margin-bottom:.2em;color:#252;}
118+
#indexdiv.sectiondt{font-weight:normal;}
119+
tt.py-exc.literal{color:red;}
120+
tt.xrefspan.pre{color:green;}

‎libs/network/doc/html/directives.html

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -150,9 +150,8 @@ <h1>Directives<a class="headerlink" href="#directives" title="Permalink to this
150150
</div>
151151
</div>
152152

153-
154-
<divclass="yui-b"id="sidebar">
155-
153+
<divclass="yui-b"id="sidebar">
154+
156155
<divclass="sphinxsidebar">
157156
<divclass="sphinxsidebarwrapper">
158157
<h3>Browse</h3>
@@ -196,8 +195,7 @@ <h3>Quick search</h3>
196195
<scripttype="text/javascript">$('#searchbox').show(0);</script>
197196
</div>
198197
</div>
199-
</div>
200-
198+
</div>
201199

202200
</div>
203201

‎libs/network/doc/html/examples.html

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -83,9 +83,8 @@ <h1>Examples<a class="headerlink" href="#examples" title="Permalink to this head
8383
</div>
8484
</div>
8585

86-
87-
<divclass="yui-b"id="sidebar">
88-
86+
<divclass="yui-b"id="sidebar">
87+
8988
<divclass="sphinxsidebar">
9089
<divclass="sphinxsidebarwrapper">
9190
<h3>Browse</h3>
@@ -127,8 +126,7 @@ <h3>Quick search</h3>
127126
<scripttype="text/javascript">$('#searchbox').show(0);</script>
128127
</div>
129128
</div>
130-
</div>
131-
129+
</div>
132130

133131
</div>
134132

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp