(&'env self, env: &'env Env, this: This<'env>)
| 254 | /// ``` |
| 255 | #[napi(ts_return_type = "Promise<string>")] |
| 256 | pub fn text(&'env self, env: &'env Env, this: This<'env>) -> Result<Unknown<'env>> { |
| 257 | let response = self.get_inner_response(env, this)?; |
| 258 | |
| 259 | response |
| 260 | .get_named_property::<Function<'_, (), Unknown>>("text")? |
| 261 | .apply(response, ()) |
| 262 | } |
| 263 | |
| 264 | /// Parses the response body as JSON. |
| 265 | /// |
no test coverage detected