[Contracts] fix phpdoc for http-client (user_data)
This commit is contained in:
parent
8585317c85
commit
226dbbc54f
@ -39,7 +39,7 @@ interface HttpClientInterface
|
|||||||
// the JSON-encoded value and set the "content-type" headers to a JSON-compatible
|
// the JSON-encoded value and set the "content-type" headers to a JSON-compatible
|
||||||
// value it is they are not defined - typically "application/json"
|
// value it is they are not defined - typically "application/json"
|
||||||
'user_data' => null, // mixed - any extra data to attach to the request (scalar, callable, object...) that
|
'user_data' => null, // mixed - any extra data to attach to the request (scalar, callable, object...) that
|
||||||
// MUST be available via $response->getInfo('data') - not used internally
|
// MUST be available via $response->getInfo('user_data') - not used internally
|
||||||
'max_redirects' => 20, // int - the maximum number of redirects to follow; a value lower or equal to 0 means
|
'max_redirects' => 20, // int - the maximum number of redirects to follow; a value lower or equal to 0 means
|
||||||
// redirects should not be followed; "Authorization" and "Cookie" headers MUST
|
// redirects should not be followed; "Authorization" and "Cookie" headers MUST
|
||||||
// NOT follow except for the initial host name
|
// NOT follow except for the initial host name
|
||||||
|
@ -86,7 +86,7 @@ interface ResponseInterface
|
|||||||
* - http_method - the HTTP verb of the last request
|
* - http_method - the HTTP verb of the last request
|
||||||
* - http_code - the last response code or 0 when it is not known yet
|
* - http_code - the last response code or 0 when it is not known yet
|
||||||
* - error - the error message when the transfer was aborted, null otherwise
|
* - error - the error message when the transfer was aborted, null otherwise
|
||||||
* - data - the value of the "data" request option, null if not set
|
* - user_data - the value of the "user_data" request option, null if not set
|
||||||
* - url - the last effective URL of the request
|
* - url - the last effective URL of the request
|
||||||
*
|
*
|
||||||
* When the "capture_peer_cert_chain" option is true, the "peer_certificate_chain"
|
* When the "capture_peer_cert_chain" option is true, the "peer_certificate_chain"
|
||||||
|
Reference in New Issue
Block a user