live-server: extend the common HTTP handling support.