(&'env self, env: &'env Env, this: This<'env>)
| 205 | /// as the response body can only be consumed once. Subsequent calls will result in an error. |
| 206 | #[napi(ts_return_type = "Promise<ArrayBuffer>")] |
| 207 | pub fn array_buffer(&'env self, env: &'env Env, this: This<'env>) -> Result<Object<'env>> { |
| 208 | let response = self.get_inner_response(env, this)?; |
| 209 | |
| 210 | response |
| 211 | .get_named_property::<Function<'_, (), Object>>("arrayBuffer")? |
| 212 | .apply(Some(&response), ())? |
| 213 | .coerce_to_object() |
| 214 | } |
| 215 | |
| 216 | /// Returns the response body as a `Uint8Array`. |
| 217 | /// |
no test coverage detected