final class Helpers

Rendering helpers for HTTP.

Constants

internal 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 56
static initCookie(IRequest $request, IResponse $response)

No description

Parameters

IRequest $request
IResponse $response

Traits

StaticClass