Dingo\Api\Http\Middleware\RateLimit::responseWithHeaders PHP Method

responseWithHeaders() protected method

Send the response with the rate limit headers.
protected responseWithHeaders ( Response $response ) : Response
$response Dingo\Api\Http\Response
return Dingo\Api\Http\Response
    protected function responseWithHeaders($response)
    {
        foreach ($this->getHeaders() as $key => $value) {
            $response->headers->set($key, $value);
        }
        return $response;
    }