Skip to content

Commit 60efa59

Browse files
committed
fix: add missing getProtocolVersion()
1 parent 258bc3e commit 60efa59

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

system/HTTP/MessageInterface.php

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,19 @@
1414
use CodeIgniter\HTTP\Exceptions\HTTPException;
1515

1616
/**
17-
* Expected behavior of an HTTP request
17+
* Expected behavior of an HTTP messages
1818
*/
1919
interface MessageInterface
2020
{
21+
/**
22+
* Retrieves the HTTP protocol version as a string.
23+
*
24+
* The string MUST contain only the HTTP version number (e.g., "1.1", "1.0").
25+
*
26+
* @return string HTTP protocol version.
27+
*/
28+
public function getProtocolVersion(): string;
29+
2130
/**
2231
* Sets the body of the current message.
2332
*

0 commit comments

Comments
 (0)