msg-pack-plugin for Hapi v18
-
npm install msg-pack-plugin --save
-
Plugin registration:
server; -
To validate you could use curl (this assumes you have msgpack2json installed):
curl --header "accept: application/x-msgpack" 'http://localhost:3000/api/user' | msgpack2json -d