MCPcopy Index your code
hub / github.com/PatchMon/PatchMon / hostFromRequest

Function hostFromRequest

server-source-code/internal/handler/common.go:16–18  ·  view source on GitHub ↗

hostFromRequest returns the X-Forwarded-Host value for use in job payloads, so queue workers can resolve the correct database for the request.

(r *http.Request)

Source from the content-addressed store, hash-verified

14// hostFromRequest returns the X-Forwarded-Host value for use in job payloads,
15// so queue workers can resolve the correct database for the request.
16func hostFromRequest(r *http.Request) string {
17 return strings.TrimSpace(r.Header.Get("X-Forwarded-Host"))
18}
19
20// ValidatePasswordPolicy checks password against resolved config. Returns descriptive error.
21func ValidatePasswordPolicy(resolved *config.ResolvedConfig, password string) error {

Callers 15

CreateScheduledReportMethod · 0.85
UpdateScheduledReportMethod · 0.85
RunScheduledReportNowMethod · 0.85
FetchReportMethod · 0.85
FetchReportBulkMethod · 0.85
RefreshDockerMethod · 0.85
ForceAgentUpdateMethod · 0.85
TriggerScanMethod · 0.85
TriggerBulkScanMethod · 0.85
InstallScannerMethod · 0.85

Calls 1

GetMethod · 0.45

Tested by

no test coverage detected