PartialContent
Less than 1 minute
PartialContent
HTTP 206 Partial Content response class.
class PartialContent extends \Hazaar\Controller\Response\HTTP\ResponseThis response indicates that the server is delivering only part of the resource due to a range header sent by the client. This is typically used for byte serving when the client requests specific portions of a file.
Methods
__construct
Constructs the HTTP 206 Partial Content response.
public __construct(?string $content, string $contentType = 'text/html'): voidThis constructor initializes the response with a status code of 206 and sets the content type and optional content body.
Parameters
| Parameter | Type | Description |
|---|---|---|
$content | string | the optional content body of the response |
$contentType | string | The content type of the response. Defaults to text/html. |
Generated by Hazaar API Doc Generator on Tue, 21 Apr 2026 04:00:24 +0000