class Helpers

Rendering helpers for HTTP.

Traits

Static class.

Constants

STRICT_COOKIE_NAME

Methods

static string
formatDate(string|int|DateTimeInterface $time)

Returns HTTP valid date format.

static bool
ipMatch(string $ip, string $mask)

Is IP address in CIDR block?

static 
initCookie(IRequest $request, IResponse $response)

No description

Details

at line 31
static string formatDate(string|int|DateTimeInterface $time)

Returns HTTP valid date format.

Parameters

string|int|DateTimeInterface $time

Return Value

string

at line 41
static bool ipMatch(string $ip, string $mask)

Is IP address in CIDR block?

Parameters

string $ip
string $mask

Return Value

bool

at line 55
static initCookie(IRequest $request, IResponse $response)

Parameters

IRequest $request
IResponse $response