This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
declare(strict_types = 1); | |
/** | |
* Hypertext Transfer Protocol (HTTP) response status codes. | |
* | |
* @see https://en.wikipedia.org/wiki/List_of_HTTP_status_codes | |
*/ | |
enum HttpStatusCode: int | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
declare(strict_types = 1); | |
/** | |
* HTTP request methods. | |
* | |
* HTTP defines a set of request methods to indicate the desired action to be | |
* performed for a given resource. Although they can also be nouns, these | |
* request methods are sometimes referred as HTTP verbs. Each of them implements | |
* a different semantic, but some common features are shared by a group of them: |