Dingo\Api\Exception\Handler::getHeaders PHP 메소드

getHeaders() 보호된 메소드

Get the headers from the exception.
protected getHeaders ( Exception $exception ) : array
$exception Exception
리턴 array
    protected function getHeaders(Exception $exception)
    {
        return $exception instanceof HttpExceptionInterface ? $exception->getHeaders() : [];
    }