HTTPRequestBuilder
class HTTPRequestBuilder
Methods
static HTTPRequest
createFromEnvironment()
Create HTTPRequest instance from the current environment variables.
static HTTPRequest
createFromVariables(array $variables, string $input, string|null $url = null)
Build HTTPRequest from given variables
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
Details
at line 16
static HTTPRequest
createFromEnvironment()
Create HTTPRequest instance from the current environment variables.
May throw errors if request is invalid.
at line 34
static HTTPRequest
createFromVariables(array $variables, string $input, string|null $url = null)
Build HTTPRequest from given variables
at line 87
static array
extractRequestHeaders(array $server)
Takes a $_SERVER data array and extracts HTTP request headers.
at line 136
static array
cleanEnvironment(array $variables)
Clean up HTTP global vars for $_GET / $_REQUEST prior to bootstrapping