diff --git a/proxy.php b/proxy.php index 60d00d0..361aafd 100644 --- a/proxy.php +++ b/proxy.php @@ -8,6 +8,11 @@ use Phly\Http\Response; require __DIR__.'/vendor/autoload.php'; +/** + * Sends an HTTP response. + * + * @param Response $response + */ function send(Response $response) { http_response_code($response->getStatusCode()); @@ -19,6 +24,14 @@ function send(Response $response) echo $response->getBody(); } +/** + * Does a request to the API of Bittrex. + * + * @param ServerRequest $request + * @param Client $client + * + * @return \GuzzleHttp\Psr7\Response + */ function doRequest(ServerRequest $request, Client $client) { $headers = [];