Skip to content

A golang package for easy integration of https into existing http servers

Notifications You must be signed in to change notification settings

jgall/easyhttps

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 

Repository files navigation

easyhttps

A golang package for easy integration of https (using TLS) into existing http servers

Usage:

func main() {
  srv := &http.Server{
    Handler: http.FileServer(http.Dir("static")),
    Addr:    ":80",
  }

  httpsSrv := easyhttps.WrapHTTPS(srv, ":443", "tlsCertCache", "example.com")
  log.Fatal(httpsSrv.ListenAndServe())
}

About

A golang package for easy integration of https into existing http servers

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages