CLIRequestBuilder
class CLIRequestBuilder extends HTTPRequestBuilder (View source)
CLI specific request building logic
Methods
public static
createFromEnvironment()
Create HTTPRequest instance from the current environment variables.
from
HTTPRequestBuilder
public static
createFromVariables(array $variables, string $input, string|null $url = null)
No description
public static
array
extractRequestHeaders(array $server)
Takes a $_SERVER data array and extracts HTTP request headers.
from
HTTPRequestBuilder
public static
array
cleanEnvironment(array $variables)
Clean up HTTP global vars for $_GET / $_REQUEST prior to bootstrapping
Details
static HTTPRequest
createFromEnvironment()
Create HTTPRequest instance from the current environment variables.
May throw errors if request is invalid.
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.
static array
cleanEnvironment(array $variables)
Clean up HTTP global vars for $_GET / $_REQUEST prior to bootstrapping