Following the instructions on the request handling section of the book i’m able to get a json response.
Accept: application/json; com.example.api.version=1.1
What i want to know is if there’s some method on RequestHandler that i can use to get the
[ 'com.example.api.version' => '1.1' ].
I know i can get the value from
$this->request->header('accept') and then parse it, but i don’t want reinvent the wheel.