Request
in package
Table of Contents
- $request : Request
- __construct() : mixed
- Request constructor.
- allowedHttpVerbs() : array<string|int, mixed>
- Supported http requests.
- extractAllMeta() : array<string|int, string>
- Extracts all meta data from the request header.
- extractFileName() : string
- Extract base64 encoded filename from header.
- extractFromHeader() : array<string|int, mixed>
- Extract metadata from header.
- extractMeta() : string
- Extracts the meta data from the request header.
- extractPartials() : array<string|int, mixed>
- Extract partials from header.
- getRequest() : Request
- Get request.
- header() : string|null
- Retrieve a header from the request.
- isFinal() : bool
- Check if this is a final concatenation request.
- isPartial() : bool
- Check if this is a partial upload request.
- key() : string
- Get upload key from url.
- method() : string
- Get http method from current request.
- path() : string
- Get the current path info for the request.
- url() : string
- Get the root URL for the request.
- isValidFilename() : bool
- Validate file name.
Properties
$request
protected
Request
$request
Methods
__construct()
Request constructor.
public
__construct() : mixed
Return values
mixed —allowedHttpVerbs()
Supported http requests.
public
allowedHttpVerbs() : array<string|int, mixed>
Return values
array<string|int, mixed> —extractAllMeta()
Extracts all meta data from the request header.
public
extractAllMeta() : array<string|int, string>
Return values
array<string|int, string> —extractFileName()
Extract base64 encoded filename from header.
public
extractFileName() : string
Return values
string —extractFromHeader()
Extract metadata from header.
public
extractFromHeader(string $key, string $value) : array<string|int, mixed>
Parameters
- $key : string
- $value : string
Return values
array<string|int, mixed> —extractMeta()
Extracts the meta data from the request header.
public
extractMeta(string $requestedKey) : string
Parameters
- $requestedKey : string
Return values
string —extractPartials()
Extract partials from header.
public
extractPartials() : array<string|int, mixed>
Return values
array<string|int, mixed> —getRequest()
Get request.
public
getRequest() : Request
Return values
Request —header()
Retrieve a header from the request.
public
header(string $key[, string|array<string|int, string>|null $default = null ]) : string|null
Parameters
- $key : string
- $default : string|array<string|int, string>|null = null
Return values
string|null —isFinal()
Check if this is a final concatenation request.
public
isFinal() : bool
Return values
bool —isPartial()
Check if this is a partial upload request.
public
isPartial() : bool
Return values
bool —key()
Get upload key from url.
public
key() : string
Return values
string —method()
Get http method from current request.
public
method() : string
Return values
string —path()
Get the current path info for the request.
public
path() : string
Return values
string —url()
Get the root URL for the request.
public
url() : string
Return values
string —isValidFilename()
Validate file name.
protected
isValidFilename(string $filename) : bool
Parameters
- $filename : string