Skip to content

Commit d694896

Browse files
committed
1 parent 5edf4cf commit d694896

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed

README.md

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,3 +24,27 @@ A [http client wrapper](https://github.com/chillerlan/php-oauth/tree/afeb3efa7fb
2424
[downloads]: https://packagist.org/packages/chillerlan/php-httpinterface/stats
2525
[donate-badge]: https://img.shields.io/badge/donate-paypal-ff33aa.svg?style=flat-square
2626
[donate]: https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=WLYUNAT9ZTJZ4
27+
28+
### `HTTPClientInterface`
29+
method | return
30+
------ | ------
31+
`request(string $url, array $params = null, string $method = null, $body = null, array $headers = null)` | `HTTPResponseInterface`
32+
`normalizeRequestHeaders(array $headers)` | array
33+
`buildQuery(array $params, bool $urlencode = null, string $delimiter = null, string $enclosure = null)` | string
34+
`checkQueryParams(array $params, bool $booleans_as_string = null)` | array
35+
36+
### `HTTPClientTrait`
37+
The `HTTPClientTrait` provides several (protected) shortcut methods for the `HTTPClientInterface`.
38+
39+
method | return
40+
------ | ------
41+
`setHTTPClient(HTTPClientInterface $http)` | `$this`
42+
`httpRequest(string $url, array $params = null, string $method = null, $body = null, array $headers = null)` | `HTTPResponseInterface`
43+
`httpDELETE(string $url, array $params = null, array $headers = null)` | `HTTPResponseInterface`
44+
`httpGET(string $url, array $params = null, array $headers = null)` | `HTTPResponseInterface`
45+
`httpPATCH(string $url, array $params = null, $body = null, array $headers = null)` | `HTTPResponseInterface`
46+
`httpPOST(string $url, array $params = null, $body = null, array $headers = null)` | `HTTPResponseInterface`
47+
`httpPUT(string $url, array $params = null, $body = null, array $headers = null)` | `HTTPResponseInterface`
48+
`normalizeRequestHeaders(array $headers)` | array
49+
`checkQueryParams($params, bool $booleans_as_string = null)` | array
50+
`httpBuildQuery(array $params, bool $urlencode = null, string $delimiter = null, string $enclosure = null)` | string

0 commit comments

Comments
 (0)