diff --git a/docs/response.md b/docs/response.md index c47229b..99b022f 100644 --- a/docs/response.md +++ b/docs/response.md @@ -97,7 +97,7 @@ This method returns the message body in JSON format. - `$headers` (array): The headers of the response. ```php -$response->json('{"message":"Hello World!"}', $status, $headers); +Response::json('{"message":"Hello World!"}', $status, $headers); ``` ## Method `Response::plain(string $content, Status|array $status = Status::Ok, array $headers = [])`. @@ -109,7 +109,7 @@ This method returns the message body in plain text format. - `$headers` (array): The headers of the response ```php -$response->plain('Hello World!', $status, $headers); +Response::plain('Hello World!', $status, $headers); ``` ## Method `Response::html(string $content, Status|array $status = Status::Ok, array $headers = [])`. @@ -121,7 +121,7 @@ This method returns the message body in HTML format. - `$headers` (array): The headers of the response ```php -$response->html('