OK
Less than 1 minute
OK
HTTP 200 OK response class.
class OK extends \Hazaar\Controller\ResponseExtends: Hazaar\Controller\Response
Represents a successful HTTP response with customizable content and content type.
Methods
__construct
OK constructor.
public __construct(?string $content, string $contentType = 'text/html'): voidParameters
| Parameter | Type | Description |
|---|---|---|
$content | string | the response body content (optional) |
$contentType | string | the MIME type of the response (default: 'text/html') |
Generated by Hazaar API Doc Generator on Sun, 08 Nov 2026 03:36:14 +0000