MAPG-43 add classes to handle http queries

remove romanpitak/php-rest-client from composer.json
This commit is contained in:
bence committed 2020-05-29 00:12:35 +02:00
1 parent 5738be5c98
commit d1c28e2d91
4 files changed
+119 -48

No files matched your search

+24
View File
@@ -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;
}
}