Mr-Dai / http-server

Static HTTP server in written Golang.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

http-server

Static HTTP server written in Golang.

This is just one of my practice projects. Don't expect it to be ready for production usage.

Usage

Use go build or go install to build or install the program.

Future Tasks

  • Support for common file types(text/html, text/json, ...)
  • Full support for HTTP cache (If-Modified-Since, Last-Modified, Cache-Control)
  • List directory using default HTML template
  • Write Makefile, make sure it can be easilly installed
  • Add doc comments
  • Add test cases
  • Integrate with Travis CI and Codecov.io.
  • Release version 0.1
  • Color output for log.
  • Configuration for controlling access from local network and Internet (default to localhost only)
  • Release version 0.1.1
  • Implement native in-memory cache
  • Implement CacheManager for cache using other source, e.g. Redis.
  • Use fsnotify to implement a more efficient support for HTTP cache
  • Release version 0.2
  • Support for GZip
  • Support for HTTPS
  • Release version 0.3
  • Support for secure file upload with token-based authentication

About

Static HTTP server in written Golang.

License:Apache License 2.0


Languages

Language:Go 98.7%Language:Makefile 1.3%