- Full name:
\Lime\Request
public array $request
public array $post
public array $query
public array $files
public array $cookies
public array $headers
public array $server
public array $body
public string $site_url
public string $base_url
public string $base_route
public string $route
public string $method
public bool $stopped
public static fromGlobalRequest(array $config = []): self
- This method is static.
Parameters:
Parameter | Type | Description |
---|---|---|
$config |
array |
public __construct(array $config = []): mixed
Parameters:
Parameter | Type | Description |
---|---|---|
$config |
array |
public param(?string $index = null, mixed $default = null, mixed $source = null): mixed
Parameters:
Parameter | Type | Description |
---|---|---|
$index |
?string | |
$default |
mixed | |
$source |
mixed |
public getClientIp(): ?string
public getClientLang(string $default = 'en'): string
Parameters:
Parameter | Type | Description |
---|---|---|
$default |
string |
public getSiteUrl(bool $withpath = false): string
Parameters:
Parameter | Type | Description |
---|---|---|
$withpath |
bool |
public is(string $type): bool
Parameters:
Parameter | Type | Description |
---|---|---|
$type |
string |
public getBearerToken(): ?string
public static getAllHeaders(array $server): array
- This method is static.
Parameters:
Parameter | Type | Description |
---|---|---|
$server |
array |