UniqueHeadGateway
class UniqueHeadGateway implements ConfiguresSsrRequests, DisablesSsr, ExcludesSsrPaths, Gateway, HasHealthCheck
Methods
Create the SSR gateway decorator.
Dispatch the page to the SSR engine, stripping the page-managed head elements from the response while preserving any other elements produced by JavaScript SSR.
Forward SSR path exclusions to the decorated gateway.
Forward SSR request configuration to the decorated gateway.
Forward SSR health checks to the decorated gateway.
Details
at line 24
__construct(Gateway $gateway, HeadManager $head, HeadRenderer $renderer)
Create the SSR gateway decorator.
at line 38
Response|null
dispatch(array $page)
Dispatch the page to the SSR engine, stripping the page-managed head elements from the response while preserving any other elements produced by JavaScript SSR.
at line 58
void
disable(Closure|bool $condition)
Forward conditional SSR disabling to the decorated gateway.
at line 72
void
except(array|string $paths)
Forward SSR path exclusions to the decorated gateway.
at line 84
void
configureRequestUsing(Closure|null $callback = null)
Forward SSR request configuration to the decorated gateway.
at line 96
bool
isHealthy()
Forward SSR health checks to the decorated gateway.