(&'env self, env: &'env Env, this: This<'env>)
| 274 | /// ``` |
| 275 | #[napi(ts_return_type = "Promise<any>")] |
| 276 | pub fn json(&'env self, env: &'env Env, this: This<'env>) -> Result<Unknown<'env>> { |
| 277 | let response = self.get_inner_response(env, this)?; |
| 278 | |
| 279 | response |
| 280 | .get_named_property::<Function<'_, (), Unknown>>("json")? |
| 281 | .apply(response, ()) |
| 282 | } |
| 283 | |
| 284 | /// Returns the response body as a `ReadableStream`. |
| 285 | /// |
no test coverage detected