Capstan is a Golang web framework that shares some similarities with others in its segment.
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
- package capstan
-
- import (
- "net"
- "net/http"
- )
-
- type HTTPServer struct {
- http.Server
- listener net.Listener
- }
-
- func (h *HTTPServer) Serve(listener net.Listener) error {
- h.listener = listener
- return h.Server.Serve(listener)
- }
-
- func (h *HTTPServer) Listener() net.Listener {
- return h.listener
- }
|