curl->asString
Returns response as text.
Target
Signature
1curl->asString()Returns response as text.
curl->asString is called with member syntax on a receiver value. curl->asString 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')->asStringThe example shows the normal call shape. Adapt variable names, validation, and surrounding error handling to the context.