Skip to content

Commit 001a502

Browse files
committed
[HttpClient] fix wording in options docs
1 parent 4b75a5a commit 001a502

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/Symfony/Contracts/HttpClient/HttpClientInterface.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,10 +33,10 @@ interface HttpClientInterface
3333
'query' => [], // string[] - associative array of query string values to merge with the request's URL
3434
'headers' => [], // iterable|string[]|string[][] - headers names provided as keys or as part of values
3535
'body' => '', // array|string|resource|\Traversable|\Closure - the callback SHOULD yield a string
36-
// smaller than the amount requested as argument; the empty string signals EOF; when
36+
// smaller than the amount requested as argument; the empty string signals EOF; if
3737
// an array is passed, it is meant as a form payload of field names and values
38-
'json' => null, // mixed - when set, implementations MUST set the "body" option to the JSON-encoded
39-
// value and set the "content-type" header to a JSON-compatible value if is not
38+
'json' => null, // mixed - if set, implementations MUST set the "body" option to the JSON-encoded
39+
// value and set the "content-type" header to a JSON-compatible value if it is not
4040
// explicitly defined in the headers option - typically "application/json"
4141
'user_data' => null, // mixed - any extra data to attach to the request (scalar, callable, object...) that
4242
// MUST be available via $response->getInfo('user_data') - not used internally

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy