MCPcopy Index your code
hub / github.com/coder/coder / slogRequestFields

Function slogRequestFields

coderd/coderdtest/oidctest/idp.go:1736–1742  ·  view source on GitHub ↗
(r *http.Request)

Source from the content-addressed store, hash-verified

1734}
1735
1736func slogRequestFields(r *http.Request) []slog.Field {
1737 return []slog.Field{
1738 slog.F("url", r.URL.String()),
1739 slog.F("host", r.Host),
1740 slog.F("method", r.Method),
1741 }
1742}
1743
1744// httpError handles better formatted custom errors.
1745func httpError(rw http.ResponseWriter, defaultCode int, err error) {

Callers 1

httpHandlerMethod · 0.85

Calls 1

StringMethod · 0.45

Tested by

no test coverage detected