function

WithHandlerOptions

Configure the generated HTTP handler used by Execute.

Example

go
ridu.WithHandlerOptions(ridu.HandlerOptions{
  AdminAssets:   adminassets.FS(),
  AllowedHosts:  []string{"cms.example.com"},
  SecureCookies: true,
})

Arguments

ArgumentTypeDescription
optionsHandlerOptionsHTTP security, limits, admin assets, observers, readiness, and worker settings.

Returns

An option to pass directly to ridu.Execute.

ExecuteOption

How it works

Generated projects use this option to attach the compiled admin assets and environment-derived HTTP policy. Passing it replaces the complete HandlerOptions value; combine settings in one value rather than scattering repeated WithHandlerOptions calls.

Full signature

Related types

  • HandlerOptions

    HTTP security, size bounds, observers, and trusted-proxy policy.

  • ExecuteOption

    One opaque runtime option accepted by Execute.