CurlHttpClient.php
1 year ago
HttpClientInterface.php
1 year ago
Request.php
1 year ago
Response.php
1 year ago
HttpClientInterface.php
20 lines
| 1 | <?php |
| 2 | |
| 3 | namespace WonderPush\Net; |
| 4 | |
| 5 | if (count(get_included_files()) === 1) { http_response_code(403); exit(); } // Prevent direct access |
| 6 | |
| 7 | /** |
| 8 | * Interface of an HTTP client. |
| 9 | */ |
| 10 | interface HttpClientInterface { |
| 11 | |
| 12 | /** |
| 13 | * Perform an HTTP call and return the response. |
| 14 | * @param Request $request |
| 15 | * @return Response |
| 16 | */ |
| 17 | public function execute(Request $request); |
| 18 | |
| 19 | } |
| 20 |