{"action":"opened","issue":{"url":"https://api.github.com/repos/p-meier/hapi-api-version/issues/4","repository_url":"https://api.github.com/repos/p-meier/hapi-api-version","labels_url":"https://api.github.com/repos/p-meier/hapi-api-version/issues/4/labels{/name}","comments_url":"https://api.github.com/repos/p-meier/hapi-api-version/issues/4/comments","events_url":"https://api.github.com/repos/p-meier/hapi-api-version/issues/4/events","html_url":"https://github.com/p-meier/hapi-api-version/issues/4","id":139393323,"number":4,"title":"Looking for ability to parse Accept headers of different formats","user":{"login":"kdstew","id":1162915,"avatar_url":"https://avatars.githubusercontent.com/u/1162915?v=3","gravatar_id":"","url":"https://api.github.com/users/kdstew","html_url":"https://github.com/kdstew","followers_url":"https://api.github.com/users/kdstew/followers","following_url":"https://api.github.com/users/kdstew/following{/other_user}","gists_url":"https://api.github.com/users/kdstew/gists{/gist_id}","starred_url":"https://api.github.com/users/kdstew/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kdstew/subscriptions","organizations_url":"https://api.github.com/users/kdstew/orgs","repos_url":"https://api.github.com/users/kdstew/repos","events_url":"https://api.github.com/users/kdstew/events{/privacy}","received_events_url":"https://api.github.com/users/kdstew/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-03-08T21:06:49Z","updated_at":"2016-03-08T21:06:49Z","closed_at":null,"body":"We have multiple apps running on different frameworks and we are wanting to get the version string in the Accept header to be consistent across the apps.\r\n\r\nFor instance we have a hapi app that looks for an Accept header like the following: `application/vnd.myapi.v2+json`\r\n\r\nAnd we have a rails app that is looking for an Accept header like the following: `application/vnd.myapi+json; version=2`\r\n\r\nTo accomplish this we were thinking we could add the option to pass an `extractVersionFromAcceptHeader` function in the options.  If this function is passed it will be run instead of the built in `_extractVersionFromAcceptHeader` function.  This would give us the most flexibility on how the version is passed in the Accept header.\r\n\r\nI'm going to work on making the modifications, but wanted to get your thoughts as well"}}