@@ -971,6 +971,18 @@ the parent <a href="#incoming_request"><code>incoming-request</code></a> is drop
971
971
<ul >
972
972
<li ><a name =" method_incoming_request.headers.0 " ></a > own< ; <a href =" #headers " ><a href =" #headers " ><code >headers</code ></a ></a >> ; </li >
973
973
</ul >
974
+ <h4 ><a name =" method_incoming_request.take_headers " ></a ><code >[method]incoming-request.take-headers: func</code ></h4 >
975
+ <p >Gives the <a href =" #headers " ><code >headers</code ></a > associated with this request as an owned resource.
976
+ Will only return success at most once, and subsequent calls will return
977
+ error.</p >
978
+ <h5 >Params</h5 >
979
+ <ul >
980
+ <li ><a name =" method_incoming_request.take_headers.self " ></a ><code >self</code >: borrow< ; <a href =" #incoming_request " ><a href =" #incoming_request " ><code >incoming-request</code ></a ></a >> ; </li >
981
+ </ul >
982
+ <h5 >Return values</h5 >
983
+ <ul >
984
+ <li ><a name =" method_incoming_request.take_headers.0 " ></a > result< ; own< ; <a href =" #headers " ><a href =" #headers " ><code >headers</code ></a ></a >> ;> ; </li >
985
+ </ul >
974
986
<h4 ><a name =" method_incoming_request.consume " ></a ><code >[method]incoming-request.consume: func</code ></h4 >
975
987
<p >Gives the <a href =" #incoming_body " ><code >incoming-body</code ></a > associated with this request. Will only
976
988
return success at most once, and subsequent calls will return error.</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,18 @@ 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 =" method_incoming_response.take_headers " ></a ><code >[method]incoming-response.take-headers: func</code ></h4 >
1265
+ <p >Returns the <a href =" #headers " ><code >headers</code ></a > associated with this response as an owned
1266
+ resource. Will only return success at most once, and subsequent calls
1267
+ will return error.</p >
1268
+ <h5 >Params</h5 >
1269
+ <ul >
1270
+ <li ><a name =" method_incoming_response.take_headers.self " ></a ><code >self</code >: borrow< ; <a href =" #incoming_response " ><a href =" #incoming_response " ><code >incoming-response</code ></a ></a >> ; </li >
1271
+ </ul >
1272
+ <h5 >Return values</h5 >
1273
+ <ul >
1274
+ <li ><a name =" method_incoming_response.take_headers.0 " ></a > result< ; own< ; <a href =" #headers " ><a href =" #headers " ><code >headers</code ></a ></a >> ;> ; </li >
1275
+ </ul >
1251
1276
<h4 ><a name =" method_incoming_body.stream " ></a ><code >[method]incoming-body.stream: func</code ></h4 >
1252
1277
<p >Returns the contents of the body, as a stream of bytes.</p >
1253
1278
<p >Returns success on first call: the stream representing the contents
0 commit comments