Version: Swoole: 4.6.0+
<?php
Swoole\HTTP\Request->create
HTTP request options
Swoole HTTP Request Object or false
Build a HTTP request object from scratch, this give you much more flexibility when passing the HTTP request object either to a downstream service or frameworks.
<?php
Swoole\HTTP\Request->create([
'parse_cookie' => true,
]);
<?php
Swoole\HTTP\Request->create([
'parse_body' => true,
]);
<?php
Swoole\HTTP\Request->create([
'parse_files' => true,
]);
<?php
Swoole\HTTP\Request->create([
'parse_files' => true,
]);
<?php
Swoole\HTTP\Request->create([
'compression_level' => 1,
]);