Skip to content

Latest commit

 

History

History
455 lines (153 loc) · 2.63 KB

Request.md

File metadata and controls

455 lines (153 loc) · 2.63 KB

Request

  • Full name: \Lime\Request

Properties

request

public array $request

post

public array $post

query

public array $query

files

public array $files

cookies

public array $cookies

headers

public array $headers

server

public array $server

body

public array $body

site_url

public string $site_url

base_url

public string $base_url

base_route

public string $base_route

route

public string $route

method

public string $method

stopped

public bool $stopped

Methods

fromGlobalRequest

public static fromGlobalRequest(array $config = []): self
  • This method is static.

Parameters:

Parameter Type Description
$config array

__construct

public __construct(array $config = []): mixed

Parameters:

Parameter Type Description
$config array

param

public param(?string $index = null, mixed $default = null, mixed $source = null): mixed

Parameters:

Parameter Type Description
$index ?string
$default mixed
$source mixed

getClientIp

public getClientIp(): ?string

getClientLang

public getClientLang(string $default = 'en'): string

Parameters:

Parameter Type Description
$default string

getSiteUrl

public getSiteUrl(bool $withpath = false): string

Parameters:

Parameter Type Description
$withpath bool

is

public is(string $type): bool

Parameters:

Parameter Type Description
$type string

getBearerToken

public getBearerToken(): ?string

getAllHeaders

public static getAllHeaders(array $server): array
  • This method is static.

Parameters:

Parameter Type Description
$server array