class Context

HTTP-specific tasks.

Methods

__construct(IRequest $request, IResponse $response)

No description

bool
isModified(string|int|DateTimeInterface|null $lastModified = null, string|null $etag = null)

Attempts to cache the sent entity by its last modification date.

getRequest()

No description

getResponse()

No description

Details

at line 27
__construct(IRequest $request, IResponse $response)

No description

Parameters

IRequest $request
IResponse $response

at line 37
bool isModified(string|int|DateTimeInterface|null $lastModified = null, string|null $etag = null)

Attempts to cache the sent entity by its last modification date.

Parameters

string|int|DateTimeInterface|null $lastModified
string|null $etag

Return Value

bool

at line 82
IRequest getRequest()

No description

Return Value

IRequest

at line 88
IResponse getResponse()

No description

Return Value

IResponse

Traits

Strict class for better experience.