MCPcopy
hub / github.com/caddyserver/certmagic / SolveHTTPChallenge

Function SolveHTTPChallenge

httphandlers.go:200–202  ·  view source on GitHub ↗

SolveHTTPChallenge solves the HTTP challenge. It should be used only on HTTP requests that are from ACME servers trying to validate an identifier (i.e. LooksLikeHTTPChallenge() == true). It returns true if the request criteria check out and it answered with key authentication, in which case no furth

(logger *zap.Logger, w http.ResponseWriter, r *http.Request, challenge acme.Challenge)

Source from the content-addressed store, hash-verified

198// returns true if the request criteria check out and it answered with key authentication, in which
199// case no further handling of the request is necessary.
200func SolveHTTPChallenge(logger *zap.Logger, w http.ResponseWriter, r *http.Request, challenge acme.Challenge) bool {
201 return solveHTTPChallenge(logger, w, r, challenge, false)
202}
203
204// LooksLikeHTTPChallenge returns true if r looks like an ACME
205// HTTP challenge request from an ACME server.

Callers

nothing calls this directly

Calls 1

solveHTTPChallengeFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…