├── .gitignore ├── LICENSE ├── README.md ├── bin ├── linux │ ├── easyhttpd │ └── run.sh ├── mac │ ├── easyhttpd │ └── run.command └── win64 │ ├── easyhttpd.exe │ └── run.bat ├── core ├── httpd │ ├── handler.go │ └── server.go └── tools │ ├── embedui.go │ ├── filedo.go │ ├── hostip.go │ ├── hostip_test.go │ ├── openit.go │ └── openit_test.go ├── go.mod ├── main.go └── resource ├── embed.go └── templates └── upload.html /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bitepeng/b0httpd/HEAD/.gitignore -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bitepeng/b0httpd/HEAD/LICENSE -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bitepeng/b0httpd/HEAD/README.md -------------------------------------------------------------------------------- /bin/linux/easyhttpd: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bitepeng/b0httpd/HEAD/bin/linux/easyhttpd -------------------------------------------------------------------------------- /bin/linux/run.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bitepeng/b0httpd/HEAD/bin/linux/run.sh -------------------------------------------------------------------------------- /bin/mac/easyhttpd: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bitepeng/b0httpd/HEAD/bin/mac/easyhttpd -------------------------------------------------------------------------------- /bin/mac/run.command: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bitepeng/b0httpd/HEAD/bin/mac/run.command -------------------------------------------------------------------------------- /bin/win64/easyhttpd.exe: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bitepeng/b0httpd/HEAD/bin/win64/easyhttpd.exe -------------------------------------------------------------------------------- /bin/win64/run.bat: -------------------------------------------------------------------------------- 1 | echo %cd% 2 | 3 | easyhttpd.exe -r ./ -p :8888 4 | 5 | pause -------------------------------------------------------------------------------- /core/httpd/handler.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bitepeng/b0httpd/HEAD/core/httpd/handler.go -------------------------------------------------------------------------------- /core/httpd/server.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bitepeng/b0httpd/HEAD/core/httpd/server.go -------------------------------------------------------------------------------- /core/tools/embedui.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bitepeng/b0httpd/HEAD/core/tools/embedui.go -------------------------------------------------------------------------------- /core/tools/filedo.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bitepeng/b0httpd/HEAD/core/tools/filedo.go -------------------------------------------------------------------------------- /core/tools/hostip.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bitepeng/b0httpd/HEAD/core/tools/hostip.go -------------------------------------------------------------------------------- /core/tools/hostip_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bitepeng/b0httpd/HEAD/core/tools/hostip_test.go -------------------------------------------------------------------------------- /core/tools/openit.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bitepeng/b0httpd/HEAD/core/tools/openit.go -------------------------------------------------------------------------------- /core/tools/openit_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bitepeng/b0httpd/HEAD/core/tools/openit_test.go -------------------------------------------------------------------------------- /go.mod: -------------------------------------------------------------------------------- 1 | module easyhttpd 2 | 3 | go 1.16 4 | -------------------------------------------------------------------------------- /main.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bitepeng/b0httpd/HEAD/main.go -------------------------------------------------------------------------------- /resource/embed.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bitepeng/b0httpd/HEAD/resource/embed.go -------------------------------------------------------------------------------- /resource/templates/upload.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bitepeng/b0httpd/HEAD/resource/templates/upload.html --------------------------------------------------------------------------------