Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add PHPResponse.forHttpCode() shorthand (#1322)
Short and sweet – adds a `PHPResponse.forHttpCode()` method to streamline the creation of various OK and error response objects. For example: ```ts // Before const error500 = new PHPResponse(500, {}, new TextEncoder().encode("Internal Server Error")) // After const error500 = PHPResponse.forHttpCode(500); ``` ## Testing instructions None, this PR only adds new code without using it just yet.
- Loading branch information