{"modulePath":"github.com/glojurelang/glojure","version":"v0.7.25","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package httpserver\n\nPackage httpserver adapts Clojure Ring handlers to Go's HTTP server.\n\n## Types\n\n```go\ntype Server struct {\n\t// contains filtered or unexported fields\n}\n```\nServer is a running Ring-compatible HTTP server.\n\n```go\nfunc Start(handler interface{}, host string, port int) (*Server, error)\n```\nStart listens on host:port and serves requests with handler. Port 0 asks the operating system to choose an available port.\n\n```go\nfunc (s *Server) Host() string\n```\nHost returns the bound listener host.\n\n```go\nfunc (s *Server) Port() int\n```\nPort returns the bound listener port.\n\n```go\nfunc (s *Server) Stop() error\n```\nStop gracefully stops the server.\n\n```go\nfunc (s *Server) Wait() error\n```\nWait blocks until the server stops.\n\n","path":"github.com/glojurelang/glojure/pkg/httpserver","name":"httpserver","synopsis":"Package httpserver adapts Clojure Ring handlers to Go's HTTP server.","isRedistributable":true}
