curl->asBytes
Returns response as bytes.
Target
Signature
1curl->asBytes()Returns response as bytes.
curl->asBytes is called with member syntax on a receiver value. curl->asBytes performs network or protocol work. Make timeouts, encodings, and authentication settings visible in calling code so failures are easier to diagnose.
Examples
Basic call
1curl('https://example.com')->asBytesThe example shows the normal call shape. Adapt variable names, validation, and surrounding error handling to the context.