MCPcopy Create free account
hub / github.com/cloudflare/cfssl / NewHandler

Function NewHandler

api/scan/scan.go:54–59  ·  view source on GitHub ↗

NewHandler returns a new http.Handler that handles a scan request.

(caBundleFile string)

Source from the content-addressed store, hash-verified

52
53// NewHandler returns a new http.Handler that handles a scan request.
54func NewHandler(caBundleFile string) (http.Handler, error) {
55 return api.HTTPHandler{
56 Handler: api.HandlerFunc(scanHandler),
57 Methods: []string{"GET"},
58 }, scan.LoadRootCAs(caBundleFile)
59}
60
61// scanInfoHandler is an HTTP handler that returns a JSON blob result describing
62// the possible families and scans to be run.

Callers 2

serve.goFile · 0.92
scan_test.goFile · 0.70

Calls 2

HandlerFuncFuncType · 0.92
LoadRootCAsFunction · 0.92

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…