Skip to content

HttpPublisher

StreamPublisher publishes the given response.

Methods

publish

Publish the content.

public publish(\Psr\Http\Message\ResponseInterface|\Psr\Http\Message\StreamInterface $content, ?\Laminas\HttpHandlerRunner\Emitter\EmitterInterface $response): bool|\Psr\Http\Message\ResponseInterface

Parameters:

Parameter Type Description
$content \Psr\Http\Message\ResponseInterface|\Psr\Http\Message\StreamInterface
$response ?\Laminas\HttpHandlerRunner\Emitter\EmitterInterface

Throws:


emitStreamBody

Emit the message body.

private emitStreamBody(\Psr\Http\Message\StreamInterface $body): bool

Parameters:

Parameter Type Description
$body \Psr\Http\Message\StreamInterface

emitResponseHeaders

Emit the response header.

private emitResponseHeaders(\Psr\Http\Message\ResponseInterface $response): void

Parameters:

Parameter Type Description
$response \Psr\Http\Message\ResponseInterface


Automatically generated on 2025-10-13