checks/httpheaders¶
import "github.com/nuqs-org/nuqs/checks/httpheaders"
Package httpheaders checks web servers for missing security headers.
This is an "active probe" check. It sends one normal GET request to "/" and looks at the response headers. It never sends anything harmful.
Types¶
Check¶
Check reports web servers that don't send basic security headers.
type Check struct {
// Client is used for the request. Nil means a default client that doesn't
// follow redirects and accepts any TLS certificate (we're scanning, not browsing).
Client *http.Client
}
Defined in checks/httpheaders/httpheaders.go:20
Check.Info¶
Info describes the check.
func (Check) Info() check.Info
Defined in checks/httpheaders/httpheaders.go:27
Check.Run¶
Run sends GET / and lists any missing headers.
func (c Check) Run(ctx context.Context, t check.Target) (*check.Result, error)
Defined in checks/httpheaders/httpheaders.go:61