fooofei / go.tool.http-server

A golang port of `python -m SimpleHTTPServer`

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

sim_http_server

A golang port of python -m SimpleHTTPServer

Principle:

1 With logging for monitor incomer.

2 Use golang's official packages as we can.

$ ./sim_http_server
2019/04/14 15:48:26 Serving HTTP on 0.0.0.0:8100
192.168.0.102 - - [14/Apr/2019:15:48:28 +0800] "GET / HTTP/1.1" 200 263
192.168.0.102 - - [14/Apr/2019:15:48:30 +0800] "GET / HTTP/1.1" 200 263
^C

About

A golang port of `python -m SimpleHTTPServer`

License:MIT License


Languages

Language:Go 92.1%Language:Shell 7.9%