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

Method json

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

Source from the content-addressed store, hash-verified

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

Callers 5

#wrapResponseMethod · 0.45
cookies.test.tsFile · 0.45
runServerFunction · 0.45
basics.test.tsFile · 0.45
basic.e2e.mjsFile · 0.45

Calls 1

get_inner_responseMethod · 0.80

Tested by

no test coverage detected