final class CachedResponse

Methods

__construct(int $status, array $headers, string $body)

Create a cached response value.

static CachedResponse
fromResponse(Response $response)

Create a cached value from a Saloon response.

ResponseInterface
toPsrResponse()

Create the cached PSR response.

Details

at line 18
__construct(int $status, array $headers, string $body)

Create a cached response value.

Parameters

int $status
array $headers
string $body

at line 28
static CachedResponse fromResponse(Response $response)

Create a cached value from a Saloon response.

Parameters

Response $response

Return Value

CachedResponse

at line 40
ResponseInterface toPsrResponse()

Create the cached PSR response.

Return Value

ResponseInterface