In order to correlate custom ErrorHandler logging with requests if would be very helpful if the ErrorHandler signature was expanded to include context.Context e.g.
type ErrorHandler func(ctx context.Context, w http.ResponseWriter, message string, statusCode int)
This however is a breaking change so another option could be to expand Options with a ErrorHandlerWithContext field.
In order to correlate custom ErrorHandler logging with requests if would be very helpful if the ErrorHandler signature was expanded to include
context.Contexte.g.This however is a breaking change so another option could be to expand
Optionswith aErrorHandlerWithContextfield.