CLIRequestBuilder
class CLIRequestBuilder extends HTTPRequestBuilder
CLI specific request building logic
Methods
static HTTPRequest
createFromEnvironment()
Create HTTPRequest instance from the current environment variables.
from HTTPRequestBuilder
static HTTPRequest
createFromVariables(array $variables, string $input, string|null $url = null)
No description
static array
extractRequestHeaders(array $server)
Takes a $_SERVER data array and extracts HTTP request headers.
from HTTPRequestBuilder
static array
cleanEnvironment(array $variables)
Clean up HTTP global vars for $_GET / $_REQUEST prior to bootstrapping
Details
in HTTPRequestBuilder at line 16
static HTTPRequest
createFromEnvironment()
Create HTTPRequest instance from the current environment variables.
May throw errors if request is invalid.
at line 77
static HTTPRequest
createFromVariables(array $variables, string $input, string|null $url = null)
in HTTPRequestBuilder at line 87
static array
extractRequestHeaders(array $server)
Takes a $_SERVER data array and extracts HTTP request headers.
at line 12
static array
cleanEnvironment(array $variables)
Clean up HTTP global vars for $_GET / $_REQUEST prior to bootstrapping