[Response] Add redirection method #4

Closed
opened 2024-11-01 12:23:50 +00:00 by ahokponou · 0 comments
ahokponou commented 2024-11-01 12:23:50 +00:00 (Migrated from github.com)

Introduce a redirection method within Response class to allow for convenient redirecting to different paths or URLs. This feature would improve the developer experience by providing a standardized redirection mechanism within the component.

Example:

$response->redirect('/new-path');
Redirects to /new-path
$response->redirect('https://example.com'/);
Redirects to external URL

Introduce a redirection method within Response class to allow for convenient redirecting to different paths or URLs. This feature would improve the developer experience by providing a standardized redirection mechanism within the component. **Example:** > $response->redirect('/new-path'); > Redirects to /new-path > $response->redirect('https://example.com'/); > Redirects to external URL
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
oladesoftware/httpcrafter#4
No description provided.