Sort properties of RawResult
@@ -15,6 +15,8 @@ namespace Swow\Http;
class RawResult
{
+ public string $protocolVersion = '';
+
/**
* headers holder format like `[ 'X-Header' => [ 'value 1', 'value 2' ] ]`
*
@@ -22,10 +24,6 @@ class RawResult
*/
public array $headers = [];
- public null|string|Buffer $body = null;
-
- public string $protocolVersion = '';
-
/**
* headers names holder format like `[ 'x-header' => 'X-Header' ]`
*
@@ -36,4 +34,6 @@ class RawResult
public int $contentLength = 0;
public bool $shouldKeepAlive = false;
+
+ public null|Buffer $body = null;
}
