Tectu / malloy

A cross-platform C++20 library providing embeddable server & client components for HTTP and WebSocket.
BSD 3-Clause "New" or "Revised" License
68 stars 8 forks source link

Custom HTTP response generator #119

Open Tectu opened 2 years ago

Tectu commented 2 years ago

As of today, http::generator provides some standard HTTP responses. These are mainly provided for convenience and are only used in very few places within the library itself.

It might make sense to extend this concept and provide a user-registerable generator. This way, whenever the library itself needs to generate such a standard response, it will invoke some user supplied code to generate the actual responses.