If you goal is to just reuse as much stuff as possible, which you seem allude to, then you should just use Apache/nginx/caddy directly. But the goal here doesn't seem to be that, so it makes sense to implement it without using as many libraries as possible.
Both approaches are valid and serve different purposes, you seem to have misunderstood the purpose here.
Both approaches are valid and serve different purposes, you seem to have misunderstood the purpose here.