liberdade-organizacao / no-backend-api

MIT License
0 stars 0 forks source link

Enable MsgPack for transferring data #136

Open ishiikurisu opened 5 months ago

ishiikurisu commented 4 months ago

Idea: check if a header named X-DATA-TYPE is set to either json or msgpack. If it's not set, use JSON by default. Otherwise use whatever is set there. This would require two changes:

ishiikurisu commented 4 months ago

Check out this repo for a possible library.

ishiikurisu commented 1 month ago

The ACCEPT header could also be used instead of creating a custom one