@@ -974,6 +974,7 @@ the parent <a href="#incoming_request"><code>incoming-request</code></a> is drop
974
974
<h4 ><a name =" method_incoming_request.consume " ></a ><code >[method]incoming-request.consume: func</code ></h4 >
975
975
<p >Gives the <a href =" #incoming_body " ><code >incoming-body</code ></a > associated with this request. Will only
976
976
return success at most once, and subsequent calls will return error.</p >
977
+ <p >Deprecated in favor of <code >into-parts</code >.</p >
977
978
<h5 >Params</h5 >
978
979
<ul >
979
980
<li ><a name =" method_incoming_request.consume.self " ></a ><code >self</code >: borrow< ; <a href =" #incoming_request " ><a href =" #incoming_request " ><code >incoming-request</code ></a ></a >> ; </li >
@@ -982,6 +983,17 @@ return success at most once, and subsequent calls will return error.</p>
982
983
<ul >
983
984
<li ><a name =" method_incoming_request.consume.0 " ></a > result< ; own< ; <a href =" #incoming_body " ><a href =" #incoming_body " ><code >incoming-body</code ></a ></a >> ;> ; </li >
984
985
</ul >
986
+ <h4 ><a name =" static_incoming_request.into_parts " ></a ><code >[static]incoming-request.into-parts: func</code ></h4 >
987
+ <p >Decompose the incoming request into its component parts.</p >
988
+ <p >All resources returned by this function are owned.</p >
989
+ <h5 >Params</h5 >
990
+ <ul >
991
+ <li ><a name =" static_incoming_request.into_parts.response " ></a ><code >response</code >: own< ; <a href =" #incoming_request " ><a href =" #incoming_request " ><code >incoming-request</code ></a ></a >> ; </li >
992
+ </ul >
993
+ <h5 >Return values</h5 >
994
+ <ul >
995
+ <li ><a name =" static_incoming_request.into_parts.0 " ></a > (<a href =" #method " ><a href =" #method " ><code >method</code ></a ></a >, option< ; <code >string</code >> ; , option< ; <a href =" #scheme " ><a href =" #scheme " ><code >scheme</code ></a ></a >> ; , option< ; <code >string</code >> ; , own< ; <a href =" #headers " ><a href =" #headers " ><code >headers</code ></a ></a >> ; , own< ; <a href =" #incoming_body " ><a href =" #incoming_body " ><code >incoming-body</code ></a ></a >> ; )</li >
996
+ </ul >
985
997
<h4 ><a name =" constructor_outgoing_request " ></a ><code >[constructor]outgoing-request: func</code ></h4 >
986
998
<p >Construct a new <a href =" #outgoing_request " ><code >outgoing-request</code ></a > with a default <a href =" #method " ><code >method</code ></a > of <code >GET</code >, and
987
999
<code >none</code > values for <code >path-with-query</code >, <a href =" #scheme " ><code >scheme</code ></a >, and <code >authority</code >.</p >
@@ -1240,6 +1252,7 @@ implementation determine how to respond with an HTTP error response.</p>
1240
1252
<h4 ><a name =" method_incoming_response.consume " ></a ><code >[method]incoming-response.consume: func</code ></h4 >
1241
1253
<p >Returns the incoming body. May be called at most once. Returns error
1242
1254
if called additional times.</p >
1255
+ <p >Deprecated in favor of <code >into-parts</code >.</p >
1243
1256
<h5 >Params</h5 >
1244
1257
<ul >
1245
1258
<li ><a name =" method_incoming_response.consume.self " ></a ><code >self</code >: borrow< ; <a href =" #incoming_response " ><a href =" #incoming_response " ><code >incoming-response</code ></a ></a >> ; </li >
@@ -1248,6 +1261,17 @@ if called additional times.</p>
1248
1261
<ul >
1249
1262
<li ><a name =" method_incoming_response.consume.0 " ></a > result< ; own< ; <a href =" #incoming_body " ><a href =" #incoming_body " ><code >incoming-body</code ></a ></a >> ;> ; </li >
1250
1263
</ul >
1264
+ <h4 ><a name =" static_incoming_response.into_parts " ></a ><code >[static]incoming-response.into-parts: func</code ></h4 >
1265
+ <p >Decompose the incoming response into its component parts.</p >
1266
+ <p >All resources returned by this function are owned.</p >
1267
+ <h5 >Params</h5 >
1268
+ <ul >
1269
+ <li ><a name =" static_incoming_response.into_parts.response " ></a ><code >response</code >: own< ; <a href =" #incoming_response " ><a href =" #incoming_response " ><code >incoming-response</code ></a ></a >> ; </li >
1270
+ </ul >
1271
+ <h5 >Return values</h5 >
1272
+ <ul >
1273
+ <li ><a name =" static_incoming_response.into_parts.0 " ></a > (<a href =" #status_code " ><a href =" #status_code " ><code >status-code</code ></a ></a >, own< ; <a href =" #headers " ><a href =" #headers " ><code >headers</code ></a ></a >> ; , own< ; <a href =" #incoming_body " ><a href =" #incoming_body " ><code >incoming-body</code ></a ></a >> ; )</li >
1274
+ </ul >
1251
1275
<h4 ><a name =" method_incoming_body.stream " ></a ><code >[method]incoming-body.stream: func</code ></h4 >
1252
1276
<p >Returns the contents of the body, as a stream of bytes.</p >
1253
1277
<p >Returns success on first call: the stream representing the contents
0 commit comments