Skip to content

HttpEmitter

The original SAPI emitter, kept as the name apps and tests already reference.

The implementation moved to SapiEmitter when response emission became a per-runtime concern (ResponseEmitterInterface); new code should depend on that interface instead of this class.

class HttpEmitter extends SapiEmitter

ExtendsSapiEmitter
SourceRuntime/HttpEmitter.php

These come from an ancestor and are documented where they are declared.

MethodDeclared inDescription
emit()SapiEmitterSends the response through http_response_code(), header() and echo.
supportsStreaming()SapiEmitterAlways true: the SAPI can flush a body incrementally to the client.