func NewHandler(next http.Handler) *Handler {
	return &Handler{
		next:   next,
		MaxAge: time.Hour * 24 * 126,  
		AcceptXForwardedProtoHeader: true,
		SendPreloadDirective:        false,
	}
}
NewHandler creates a new HSTS redirector, which will redirect any request served over HTTP over to HTTPS.
package hsts
import (
	"bytes"
	"net/http"
	"strconv"
	"time"
)
type Handler struct {
	next http.Handler
	MaxAge time.Duration
	HostOverride string
	AcceptXForwardedProtoHeader bool
	SendPreloadDirective bool
}