Open
Description
Right now we are shipping our own implementation of:
- HTTP request parser
- async HTTP server
- URL parser (including a bunch of grammars for every API)
We can get rid of most of the server/
folder by moving the code to NodeJS which already ships with production quality modules for all of this. After #3768 lands we would not induce a weird cyclic dependency anymore and this becomes feasible.
We should be able to replace most of the boost::spirit
code with https://pegjs.org/.
Having this as node-express based tool would also enable us to easily integrate osrm-text-instructions
and simplify hooking middle ware like authentication services into this.