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.
1 parent 1e880ca commit e4bfad3Copy full SHA for e4bfad3
http_client.rst
@@ -676,6 +676,7 @@ when the streams are large)::
676
$client->request('POST', 'https://...', [
677
// ...
678
'body' => $formData->bodyToString(),
679
+ 'headers' => $formData->getPreparedHeaders()->toArray(),
680
]);
681
682
If you need to add a custom HTTP header to the upload, you can do::
0 commit comments