toCurl
Returns a cURL command equivalent to this request, useful for debugging and reproducing requests.
This includes the HTTP method, headers, request body (if present), and URL.
Example:
curl 'https://example.com/api' \
-X PUT \
-H 'Authorization: Bearer token' \
--data '{\"key\":\"value\"}'Content copied to clipboard
Note: This will consume the request body. This may have side effects if the RequestBody is streaming or can be consumed only once.