COAR Notify
 
Loading...
Searching...
No Matches
coarnotify\http\CurlHttpLayer Class Reference
Inheritance diagram for coarnotify\http\CurlHttpLayer:
coarnotify\http\HttpLayer

Public Member Functions

 post (string $url, string $data, ?array $headers=[],... $args)
 
 get (string $url, ?array $headers=[],... $args)
 

Detailed Description

Implementation of the HTTP layer using the CURL library. This is the default implementation used when no other implementation is supplied

Member Function Documentation

◆ get()

coarnotify\http\CurlHttpLayer::get ( string $url,
?array $headers = [],
... )

Make an HTTP GET request to the supplied URL with the given headers

Parameters
string$url
array | null$headers
...$args
Returns
\coarnotify\http\CurlHttpResponse
Exceptions

Exception

Implements coarnotify\http\HttpLayer.

◆ post()

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

Parameters
string$url
string$data
array | null$headers
...$args
Returns
\coarnotify\http\CurlHttpResponse
Exceptions

Exception

Implements coarnotify\http\HttpLayer.


The documentation for this class was generated from the following file: