func (s SiteConfig) Host() string {
	return s.Addr.Host
}
Host returns s.Addr.Host.
package httpserver
import (
	"time"
	"github.com/tmpim/casket/caskettls"
)
type SiteConfig struct {
	Addr Address
	IndexPages []string
	ListenHost string
	TLS *caskettls.Config
	middleware []Middleware
	middlewareChain Handler
	listenerMiddleware []ListenerMiddleware
	Root string
	HiddenFiles []string
	Limits Limits
	originCasketfile string
	Timeouts Timeouts
	FallbackSite bool
}
type Timeouts struct {
	ReadTimeout          time.Duration
	ReadTimeoutSet       bool
	ReadHeaderTimeout    time.Duration
	ReadHeaderTimeoutSet bool
	WriteTimeout         time.Duration
	WriteTimeoutSet      bool
	IdleTimeout          time.Duration
	IdleTimeoutSet       bool
}
type Limits struct {
	MaxRequestHeaderSize int64
	MaxRequestBodySizes  []PathLimit
}
type PathLimit struct {
	Path  string
	Limit int64
}
func (s *SiteConfig) AddMiddleware(m Middleware) {
	s.middleware = append(s.middleware, m)
}
func (s *SiteConfig) AddListenerMiddleware(l ListenerMiddleware) {
	s.listenerMiddleware = append(s.listenerMiddleware, l)
}
func (s SiteConfig) TLSConfig() *caskettls.Config {
	return s.TLS
}