@@ -974,6 +974,7 @@ the parent <a href="#incoming_request"><code>incoming-request</code></a> is drop
974974<h4 ><a  name =" method_incoming_request.consume " ></a ><code >[method]incoming-request.consume: func</code ></h4 >
975975<p >Gives the <a  href =" #incoming_body " ><code >incoming-body</code ></a > associated with this request. Will only
976976return success at most once, and subsequent calls will return error.</p >
977+ <p >Deprecated in favor of <code >into-parts</code >.</p >
977978<h5 >Params</h5 >
978979<ul >
979980<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>
982983<ul >
983984<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 >
984985</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 >
985997<h4 ><a  name =" constructor_outgoing_request " ></a ><code >[constructor]outgoing-request: func</code ></h4 >
986998<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
987999<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>
12401252<h4 ><a  name =" method_incoming_response.consume " ></a ><code >[method]incoming-response.consume: func</code ></h4 >
12411253<p >Returns the incoming body. May be called at most once. Returns error
12421254if called additional times.</p >
1255+ <p >Deprecated in favor of <code >into-parts</code >.</p >
12431256<h5 >Params</h5 >
12441257<ul >
12451258<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>
12481261<ul >
12491262<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 >
12501263</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 >
12511275<h4 ><a  name =" method_incoming_body.stream " ></a ><code >[method]incoming-body.stream: func</code ></h4 >
12521276<p >Returns the contents of the body, as a stream of bytes.</p >
12531277<p >Returns success on first call: the stream representing the contents
0 commit comments