Skip to content

Commit a67e769

Browse files
committed
Merge pull request #62 from php-http/document-options
document options argument
2 parents f6503da + 2882ccd commit a67e769

File tree

2 files changed

+16
-0
lines changed

2 files changed

+16
-0
lines changed

src/HttpMethodsClient.php

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,14 @@
1111
*
1212
* Use this interface when you do not have PSR-7 RequestInterface instances available.
1313
*
14+
* Implementations should be configured in their constructor. For runtime behaviour changes, there
15+
* is an $options parameter. It SHOULD be validated by the client and an exception thrown if
16+
* unknown options are passed.
17+
* Option that must be accepted by every client implementation (though it is free to ignore them
18+
* if the underlying implementation does not support the option):
19+
*
20+
* - timeout (int): the timeout for the HTTP request in seconds. 0 means to use the default.
21+
*
1422
* @author Márk Sági-Kazár [email protected]>
1523
*/
1624
interface HttpMethodsClient

src/HttpPsrClient.php

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,14 @@
99
/**
1010
* Sends one or more PSR-7 Request
1111
*
12+
* Implementations should be configured in their constructor. For runtime behaviour changes, there
13+
* is an $options parameter. It SHOULD be validated by the client and an exception thrown if
14+
* unknown options are passed.
15+
* Option that must be accepted by every client implementation (though it is free to ignore them
16+
* if the underlying implementation does not support the option):
17+
*
18+
* - timeout (int): the timeout for the HTTP request in seconds. 0 means to use the default.
19+
*
1220
* @author GeLo <[email protected]>
1321
*/
1422
interface HttpPsrClient

0 commit comments

Comments
 (0)