MCPcopy Index your code
hub / github.com/go-dev-frame/sponge / runHTTP

Method runHTTP

pkg/httpsrv/http.go:76–81  ·  view source on GitHub ↗

runHTTP starts the server in http mode, without TLS.

()

Source from the content-addressed store, hash-verified

74
75// runHTTP starts the server in http mode, without TLS.
76func (s *Server) runHTTP() error {
77 if err := s.server.ListenAndServe(); err != nil && !errors.Is(err, http.ErrServerClosed) {
78 return fmt.Errorf("[http server] listen and serve error: %v", err)
79 }
80 return nil
81}
82
83// Scheme returns the scheme of the server, e.g. http or https.
84func (s *Server) Scheme() string {

Callers 1

RunMethod · 0.95

Calls 1

ErrorfMethod · 0.80

Tested by

no test coverage detected