You signed in with another tab or window.Reload to refresh your session.You signed out in another tab or window.Reload to refresh your session.You switched accounts on another tab or window.Reload to refresh your session.Dismiss alert
@@ -417,6 +417,17 @@ <h3>HTTP Methods<a class="headerlink" href="#http-methods" title="Permalink to t
417
417
body chunks be handled by the<ttclass="docutils literal"><spanclass="pre">callback</span></tt> parameter. The signature of
418
418
<ttclass="docutils literal"><spanclass="pre">callback</span></tt> should be the following:<ttclass="docutils literal"><spanclass="pre">void(iterator_range<char</span><spanclass="pre">const</span><spanclass="pre">*></span><spanclass="pre">const</span>
<dd>The body and content_type parameters are of type
422
+
<ttclass="docutils literal"><spanclass="pre">boost::network::string<Tag>::type</span></tt> where<ttclass="docutils literal"><spanclass="pre">Tag</span></tt> is the HTTP Client’s
423
+
<ttclass="docutils literal"><spanclass="pre">Tag</span></tt>. This uses the request object’s other headers. Have the response
424
+
body chunks be handled by the<ttclass="docutils literal"><spanclass="pre">callback</span></tt> parameter. The signature of
425
+
<ttclass="docutils literal"><spanclass="pre">callback</span></tt> should be the following:<ttclass="docutils literal"><spanclass="pre">void(iterator_range<char</span><spanclass="pre">const</span><spanclass="pre">*></span><spanclass="pre">const</span>
argument should have a which has a signature of the form:
428
+
<ttclass="docutils literal"><spanclass="pre">bool(string_type&)</span></tt>. The provided<ttclass="docutils literal"><spanclass="pre">string_type&</span></tt> will be streamed as
429
+
soon as the function returns. A return value of<ttclass="docutils literal"><spanclass="pre">false</span></tt> signals the
430
+
client that the most recent invocation is the last chunk to be sent.</dd>
<dd>Perform and HTTP POST request, and have the request’s body chunks be
422
433
generated by the<ttclass="docutils literal"><spanclass="pre">streaming_callback</span></tt> which has a signature of the form:
@@ -456,13 +467,25 @@ <h3>HTTP Methods<a class="headerlink" href="#http-methods" title="Permalink to t
456
467
<dd>The body and content_type parameters are of type
457
468
<ttclass="docutils literal"><spanclass="pre">boost::network::string<Tag>::type</span></tt> where<ttclass="docutils literal"><spanclass="pre">Tag</span></tt> is the HTTP Client’s
458
469
<ttclass="docutils literal"><spanclass="pre">Tag</span></tt>. This uses the request object’s other headers.</dd>
<dd>The body and content_type parameters are of type
461
472
<ttclass="docutils literal"><spanclass="pre">boost::network::string<Tag>::type</span></tt> where<ttclass="docutils literal"><spanclass="pre">Tag</span></tt> is the HTTP Client’s
462
473
<ttclass="docutils literal"><spanclass="pre">Tag</span></tt>. This uses the request object’s other headers. Have the response
463
474
body chunks be handled by the<ttclass="docutils literal"><spanclass="pre">callback</span></tt> parameter. The signature of
464
475
<ttclass="docutils literal"><spanclass="pre">callback</span></tt> should be the following:<ttclass="docutils literal"><spanclass="pre">void(iterator_range<char</span><spanclass="pre">const</span><spanclass="pre">*></span><spanclass="pre">const</span>
<dd>The body and content_type parameters are of type
479
+
<ttclass="docutils literal"><spanclass="pre">boost::network::string<Tag>::type</span></tt> where<ttclass="docutils literal"><spanclass="pre">Tag</span></tt> is the HTTP Client’s
480
+
<ttclass="docutils literal"><spanclass="pre">Tag</span></tt>. This uses the request object’s other headers. Have the response
481
+
body chunks be handled by the<ttclass="docutils literal"><spanclass="pre">callback</span></tt> parameter. The signature of
482
+
<ttclass="docutils literal"><spanclass="pre">callback</span></tt> should be the following:<ttclass="docutils literal"><spanclass="pre">void(iterator_range<char</span><spanclass="pre">const</span><spanclass="pre">*></span><spanclass="pre">const</span>
483
+
<spanclass="pre">&,</span><spanclass="pre">boost::system::error_code</span><spanclass="pre">const</span><spanclass="pre">&)</span></tt>. This form also has the request’s body
484
+
chunks be generated by the<ttclass="docutils literal"><spanclass="pre">streaming_callback</span></tt> which has a signature of
485
+
the form:<ttclass="docutils literal"><spanclass="pre">bool(string_type&)</span></tt>. The provided<ttclass="docutils literal"><spanclass="pre">string_type&</span></tt> will be
486
+
streamed as soon as the function returns. A return value of<ttclass="docutils literal"><spanclass="pre">false</span></tt>
487
+
signals the client that the most recent invocation is the last chunk to be