Package Exports
- http-server-header
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (http-server-header) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
http-server-header
A command-line static files http server with ServerSide headers output. For peoples who are focus on the http protocol headers.
Install
npm i -g http-server-header
Usage
http-server-header --help -h // print help information http-server-header --port -p 8100 // port, default 8100 http-server-header --dir -d path // dir as www root
Examples
http-server-header -h // print help information http-server-header // 8100 as default port, current folder as www root http-server-header -p 8989 // 8989 as port http-server-header -d /home // /home as root http-server-header -p 8989 -d /home // 8989 as port, /home as www root
Running output
$ http-server-header http-server-header listening on port 8100 http://127.0.0.1:8100 http://192.168.2.43:8100 [1] GET /index.html from 127.0.0.1 ---> Host: 127.0.0.1:8100 ---> Connection: keep-alive ---> Upgrade-Insecure-Requests: 1 ---> User-Agent: Mozilla/5.0 ---> Sec-Fetch-User: ?1 ---> Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.9 ---> Sec-Fetch-Site: none ---> Sec-Fetch-Mode: navigate ---> Accept-Encoding: gzip, deflate, br ---> Accept-Language: en 404 Not Found <--- X-Powered-By: Express <--- Content-Security-Policy: default-src 'none' <--- X-Content-Type-Options: nosniff <--- Content-Type: text/html; charset=utf-8 <--- Content-Length: 149