Add outline HttpClient class

This commit is contained in:
Jeremy Dormitzer 2019-01-14 11:27:27 -05:00
parent aadb0bb322
commit 985f6bc14f

24
src/Client/HttpClient.php Normal file
View File

@ -0,0 +1,24 @@
<?php
namespace ActivityPub\Client;
use Symfony\Component\HttpFoundation\Request;
/**
* The HttpClient provides methods to send HTTP requests to other servers
*/
class HttpClient
{
/**
* Sends the $request
*
* @param Request $request The request
* @return Response The HTTP response
*/
public function send( Request $request )
{
// TODO implement me
// Use symfony\psr-http-message-bridge to convert the Request to a
// PSR-7 request which Guzzle understands
}
}
?>