{"modulePath":"github.com/mutablelogic/go-server","version":"v1.5.16","isLatest":false,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package httpserver\n\n## Constants\n\n```go\nconst (\n\tPemTypePrivateKey  = \"PRIVATE KEY\"\n\tPemTypeCertificate = \"CERTIFICATE\"\n)\n```\n\n## Functions\n\n```go\nfunc New(listen string, router http.Handler, cert *tls.Config, opts ...Opt) (*server, error)\n```\n\n```go\nfunc TLSConfig(name string, verify bool, files ...string) (*tls.Config, error)\n```\nCreate a new TLS configuration object from the certificate and key files\n\n## Types\n\n```go\ntype Opt func(*opt) error\n```\n\n```go\nfunc WithReadTimeout(v time.Duration) Opt\n```\nSet the read timeout for the HTTP server\n\n```go\nfunc WithWriteTimeout(v time.Duration) Opt\n```\nSet the write timeout for the HTTP server\n\n","path":"github.com/mutablelogic/go-server/pkg/httpserver","name":"httpserver","synopsis":"","isRedistributable":true}
