This is the API design of the webserver supporting the browser source. I tried oatpp but it had a nasty habit of randomly crashing. I looked at crowCPP but it depends on boost, which I have a personal grudge against. So I'm making Yet Another Web Framework. This one supports only the minimum feature set required to implement the browser source. The browser source requires two APIs: 1. GET /: return index.html (html) 2. GET /api/transcript: return transcript (json) ``` enum ContentType { HTTP, JSON, }; class WebServer: public: WebServer(u16 port) // method and path are in-params // payload and type are out-params typedef handler_t std::function