package main
import (
"context"
"entrlcom.dev/http-server"
)
func main() {
ctx := context.Background()
// HTTP server.
httpServer := http_server.NewHTTPServer()
httpServer.Addr = "" // TODO: set address.
httpServer.Handler = nil // TODO: set handler.
if err := httpServer.ListenAndServe(); err != nil {
// TODO: Handle error.
return
}
// ...
// Shutdown HTTP server.
if err := httpServer.Shutdown(ctx); err != nil {
// TODO: Handle error.
return
}
// ...
}
-
Notifications
You must be signed in to change notification settings - Fork 0
HTTP server with tuned and hardened defaults ready for Internet exposure.
License
entrlcom/go-http-server
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
HTTP server with tuned and hardened defaults ready for Internet exposure.
Topics
Resources
License
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published