function
WithHandlerOptions
Configure the generated HTTP handler used by Execute.
Example
ridu.WithHandlerOptions(ridu.HandlerOptions{
AdminAssets: adminassets.FS(),
AllowedHosts: []string{"cms.example.com"},
SecureCookies: true,
})Arguments
| Argument | Type | Description |
|---|---|---|
options | HandlerOptions | HTTP security, limits, admin assets, observers, readiness, and worker settings. |
Returns
An option to pass directly to ridu.Execute.
ExecuteOptionHow 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
func WithHandlerOptions(options HandlerOptions) ExecuteOptionRelated types
HandlerOptionsHTTP security, size bounds, observers, and trusted-proxy policy.
ExecuteOptionOne opaque runtime option accepted by Execute.