CakePHP 3: Content negotiation with RequestHandlerComponent

Hi everybody.

Following the instructions on the request handling section of the book i’m able to get a json response.

Accept: application/json

Reading some links 1, 2 and it seems a lot of people add the api version in the negotiation:

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.