Versions in this module Expand all Collapse all v1 v1.27.0 Aug 10, 2026 v1.26.2 Aug 1, 2026 Changes in this version type Options + CookieHttpOnly bool v1.25.1 May 22, 2026 Changes in this version + var ErrActualAnubisBug = errors.New(...) + func LoadPoliciesOrDefault(ctx context.Context, fname string, defaultDifficulty int, logLevel string) (*policy.ParsedConfig, error) + type CookieOpts struct + Expiry time.Duration + Host string + Name string + Path string + Value string + type Options struct + BasePrefix string + CookieDomain string + CookieDynamicDomain bool + CookieExpiration time.Duration + CookiePartitioned bool + CookieSameSite http.SameSite + CookieSecure bool + DifficultyInJWT bool + ED25519PrivateKey ed25519.PrivateKey + HS512Secret []byte + JWTRestrictionHeader string + LogLevel string + Logger *slog.Logger + Next http.Handler + OpenGraph config.OpenGraph + Policy *policy.ParsedConfig + PublicUrl string + RedirectDomains []string + ServeRobotsTXT bool + StripBasePrefix bool + Target string + TargetHost string + TargetInsecureSkipVerify bool + TargetSNI string + WebmasterEmail string + type Server struct + OGTags *ogtags.OGTagCache + func New(opts Options) (*Server, error) + func (s *Server) ClearCookie(w http.ResponseWriter, cookieOpts CookieOpts) + func (s *Server) MakeChallenge(w http.ResponseWriter, r *http.Request) + func (s *Server) PassChallenge(w http.ResponseWriter, r *http.Request) + func (s *Server) RenderBench(w http.ResponseWriter, r *http.Request) + func (s *Server) RenderIndex(w http.ResponseWriter, r *http.Request, cr policy.CheckResult, ...) + func (s *Server) ServeHTTP(w http.ResponseWriter, r *http.Request) + func (s *Server) ServeHTTPNext(w http.ResponseWriter, r *http.Request) + func (s *Server) SetCookie(w http.ResponseWriter, cookieOpts CookieOpts) + type UnixRoundTripper struct + Transport *http.Transport + func (t UnixRoundTripper) RoundTrip(req *http.Request) (*http.Response, error)