Skip to content

Kirby 4.2.0

Response::guardAgainstOutput()

Ensures that the callback does not produce the first body output (used to show when loading a file creates side effects)

Response::guardAgainstOutput(Closure $callback, ...$args = null): mixed|null

Parameters

Name Type Default
$callback * Closure
... $args mixed null

Return type

mixed|null

Parent class

Kirby\Http\Response