Skip to content

Latest commit

 

History

History
30 lines (25 loc) · 456 Bytes

README.md

File metadata and controls

30 lines (25 loc) · 456 Bytes

1. It is a server providing restful api and non-restful api

2. It is a demo.

3. Support

  • Listen http port
  • Listen unix sock
  • handle restful api
  • handle non-restful api

4.usage

    go run server.go
    curl http://127.0.0.1/api/foo
    curl -XPOST http://127.0.0.1/api/foo

5.Todo

1.wrap request and reponse as context
2.support middleware
3.support render web page 
4...
...