Classes: Add simple HTTP request/response using curl
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user