This is another Go HTTP Server with support for service management and a built-in simple trie-tree based parametrized path handler.
Please check the example
directory under the root dir. It contains a simple HTTP Server with a simple Student service for CRUD student records. It also has a simple authentication middleware for update/delete requests.
Another Go HTTP Server itself does not use any third-party library at all(that's bullshit, I did use fasthttp to improve concurrency performance). It's compact and fast with support for 2 types of path parameters(paramed path parameter :xxx
and wildcard parameter *yyy
).
Usesync.Pool
to reduce memory usage for requests/response creation. Each request/response can be freed afterhandleRequest
finishes.- Use
sync.Pool
to reduce memory consumption for middleware contexts for each request.