MAPG-43 add classes to handle http queries
remove romanpitak/php-rest-client from composer.json
This commit is contained in:
1 parent
5738be5c98
commit
d1c28e2d91
4 files changed
+119
-48
No files matched your search
@@ -0,0 +1,24 @@
|
||||
<?php namespace MapGuesser\Http;
|
||||
|
||||
class Response
|
||||
{
|
||||
private string $body;
|
||||
|
||||
private array $headers;
|
||||
|
||||
public function __construct(string $body, array $headers)
|
||||
{
|
||||
$this->body = $body;
|
||||
$this->headers = $headers;
|
||||
}
|
||||
|
||||
public function getBody()
|
||||
{
|
||||
return $this->body;
|
||||
}
|
||||
|
||||
public function getHeaders()
|
||||
{
|
||||
return $this->headers;
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user