{"modulePath":"github.com/mutablelogic/go-server","version":"v1.0.48","isLatest":false,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package httpserver\n\nThe \\`httpserver\\` task implements a server which can serve requests over HTTP, HTTPS and FCGI\n\n## Functions\n\n```go\nfunc NewWithPlugin(p Plugin) (*t, error)\n```\nCreate a new logger task with provider of other tasks\n\n## Types\n\n```go\ntype Plugin struct {\n\ttask.Plugin\n\tRouter_  types.Task     `json:\"router,omitempty\"` // The router object which serves the gateways\n\tListen_  types.String   `json:\"listen,omitempty\"` // Address or path for binding HTTP server\n\tTLS_     *TLS           `json:\"tls,omitempty\"`    // TLS parameters, or nil if not using TLS\n\tTimeout_ types.Duration `hcl:\"timeout,optional\"`  // Read timeout on HTTP requests\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc (p Plugin) Listen() string\n```\n\n```go\nfunc (p Plugin) Name() string\n```\n\n```go\nfunc (p Plugin) New(ctx context.Context, provider iface.Provider) (iface.Task, error)\n```\nCreate a new logger task with provider of other tasks\n\n```go\nfunc (p Plugin) Router(ctx context.Context, provider iface.Provider) plugin.Router\n```\n\n```go\nfunc (p Plugin) TLS() (*tls.Config, error)\n```\n\n```go\nfunc (p Plugin) Timeout() time.Duration\n```\n\n```go\ntype TLS struct {\n\tKey_  types.String `json:\"key\"`  // Path to TLS Private Key\n\tCert_ types.String `json:\"cert\"` // Path to TLS Certificate\n}\n```\n\n","path":"github.com/mutablelogic/go-server/pkg/httpserver","name":"httpserver","synopsis":"The `httpserver` task implements a server which can serve requests over HTTP, HTTPS and FCGI","isRedistributable":true}
