| 1 | <?php |
||
| 13 | class HttpDataValidation |
||
| 14 | { |
||
| 15 | /** |
||
| 16 | * @param string $httpLine |
||
| 17 | 4 | * @return bool |
|
| 18 | */ |
||
| 19 | 4 | public static function isField(string $httpLine): bool |
|
| 23 | |||
| 24 | /** |
||
| 25 | * @param string $method |
||
| 26 | * @param string $path |
||
| 27 | * @param string $protocol |
||
| 28 | 3 | * @throws HttpParserBadFormatException |
|
| 29 | */ |
||
| 30 | 3 | public static function checkHeaderOrRaiseError(string $method, string $path, string $protocol): void |
|
| 36 | } |