Skip to content

Commit 4e212ee

Browse files
committed
Tweak
1 parent d6356eb commit 4e212ee

File tree

1 file changed

+8
-13
lines changed

1 file changed

+8
-13
lines changed

http_client.rst

+8-13
Original file line numberDiff line numberDiff line change
@@ -557,20 +557,15 @@ Use the ``headers`` option to define the default headers added to all requests:
557557
],
558558
]);
559559
560-
You can also set new headers or override the default ones for specific requests:
560+
You can also set new headers or override the default ones for specific requests::
561561

562-
563-
.. configuration-block::
564-
565-
.. code-block:: php
566-
567-
// this header is only included in this request and overrides the value
568-
// of the same header if defined globally by the HTTP client
569-
$response = $client->request('POST', 'https://...', [
570-
'headers' => [
571-
'Content-Type' => 'text/plain',
572-
],
573-
]);
562+
// this header is only included in this request and overrides the value
563+
// of the same header if defined globally by the HTTP client
564+
$response = $client->request('POST', 'https://...', [
565+
'headers' => [
566+
'Content-Type' => 'text/plain',
567+
],
568+
]);
574569

575570
Uploading Data
576571
~~~~~~~~~~~~~~

0 commit comments

Comments
 (0)