We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents d5c455e + 77c7d37 commit c0a83fbCopy full SHA for c0a83fb
http_client.rst
@@ -669,6 +669,7 @@ when the streams are large)::
669
$client->request('POST', 'https://...', [
670
// ...
671
'body' => $formData->bodyToString(),
672
+ 'headers' => $formData->getPreparedHeaders()->toArray(),
673
]);
674
675
If you need to add a custom HTTP header to the upload, you can do::
0 commit comments