Keep the SSRF-safe transport in clientForConfig (closes #69)
Some checks failed
check / check (push) Has been cancelled

This commit is contained in:
2026-08-07 18:58:44 +07:00
parent 2cc8723997
commit 6b14fc847d
3 changed files with 129 additions and 0 deletions

View File

@@ -126,6 +126,18 @@ func (e *Engine) ExportDoHTTPRequest(
return e.doHTTPRequest(ctx, cfg, event)
}
// ExportClientForConfig exposes clientForConfig.
func (e *Engine) ExportClientForConfig(
cfg *HTTPTargetConfig,
) *http.Client {
return e.clientForConfig(cfg)
}
// ExportClient returns the engine's shared HTTP client.
func (e *Engine) ExportClient() *http.Client {
return e.client
}
// ExportScheduleRetry exposes scheduleRetry.
func (e *Engine) ExportScheduleRetry(
task Task, delay time.Duration,