Public Member Functions | |
post (string $url, string $data, ?array $headers=[],... $args) | |
get (string $url, ?array $headers=[],... $args) | |
Implementation of the HTTP layer using the CURL library. This is the default implementation used when no other implementation is supplied
coarnotify\http\CurlHttpLayer::get | ( | string | $url, |
?array | $headers = [], | ||
... ) |
Make an HTTP GET request to the supplied URL with the given headers
string | $url | |
array | null | $headers | |
...$args |
Exception
Implements coarnotify\http\HttpLayer.
coarnotify\http\CurlHttpLayer::post | ( | string | $url, |
string | $data, | ||
?array | $headers = [], | ||
... ) |
Make an HTTP POST request to the supplied URL with the given body data, and headers
string | $url | |
string | $data | |
array | null | $headers | |
...$args |
Exception
Implements coarnotify\http\HttpLayer.