Classes: Add simple HTTP request/response using curl

This commit is contained in:
Riyyi
2021-08-30 00:27:42 +02:00
parent 9af5f50135
commit 2311c98257
3 changed files with 183 additions and 0 deletions
+21
View File
@@ -0,0 +1,21 @@
<?php
namespace App\Classes\Http;
class Response {
private string $response;
public function __construct(string $response)
{
$this->response = $response;
}
//-------------------------------------//
public function body(): string
{
return $this->response;
}
}