MCPcopy
hub / github.com/ory/hydra / HTTPClient

Method HTTPClient

driver/registry_sql.go:454–468  ·  view source on GitHub ↗
(_ context.Context, opts ...httpx.ResilientOptions)

Source from the content-addressed store, hash-verified

452}
453
454func (m *RegistrySQL) HTTPClient(_ context.Context, opts ...httpx.ResilientOptions) *retryablehttp.Client {
455 opts = append(opts,
456 httpx.ResilientClientWithLogger(m.Logger()),
457 httpx.ResilientClientWithMaxRetry(2),
458 httpx.ResilientClientWithConnectionTimeout(30*time.Second))
459
460 if m.Config().ClientHTTPNoPrivateIPRanges() {
461 opts = append(
462 opts,
463 httpx.ResilientClientDisallowInternalIPs(),
464 httpx.ResilientClientAllowInternalIPRequestsTo(m.Config().ClientHTTPPrivateIPExceptionURLs()...),
465 )
466 }
467 return httpx.NewResilientClient(opts...)
468}
469
470func (m *RegistrySQL) OAuth2Provider() fosite.OAuth2Provider {
471 if m.fop == nil {

Callers

nothing calls this directly

Calls 4

LoggerMethod · 0.95
ConfigMethod · 0.95

Tested by

no test coverage detected