MCPcopy Create free account
hub / github.com/apify/impit / text

Method text

impit-node/src/response.rs:256–262  ·  view source on GitHub ↗
(&'env self, env: &'env Env, this: This<'env>)

Source from the content-addressed store, hash-verified

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 ///

Callers 2

basics.test.tsFile · 0.45

Calls 1

get_inner_responseMethod · 0.80

Tested by

no test coverage detected