primitives/source/handy_http_primitives/handler.d

13 lines
341 B
D
Raw Normal View History

2024-08-15 23:21:48 +00:00
module handy_http_primitives.handler;
import handy_http_primitives.request;
import handy_http_primitives.response;
2024-09-17 21:08:15 +00:00
/**
* Defines the request handler interface, which is called upon to handle an
* incoming HTTP request.
*/
2024-08-15 23:21:48 +00:00
interface HttpRequestHandler {
2024-09-17 21:08:15 +00:00
void handle(ref ServerHttpRequest request, ref ServerHttpResponse response);
}