Skip to content

cdp_network_body

Get the actual response body for a network request by its requestId. Use cdp_network_log first to find request IDs. Only works in CDP network mode (RN 0.83+). Bodies are fetched on-demand, not cached. Pass device to look up requestId in a specific device buffer; defaults to the active device.

NameTypeRequiredDefaultConstraintsDescription
requestIdstringYesRequest ID from cdp_network_log output
maxLengthnumberNo10000min: 100, max: 100000, integerMax body length to return (default 10000 chars). Truncated if longer.
devicestringNoDevice key to scope the lookup (“all” to search every device buffer). Defaults to the active device.
cdp_network_body(requestId: <string>)