class SetCacheHeaders

Methods

static string
using(array|string $options)

Specify the options for the middleware.

Response
handle(Request $request, Closure $next, array|string $options = [])

Add cache related HTTP headers.

array
parseOptions(string $options)

Parse the given header options.

Details

at line 22
static string using(array|string $options)

Specify the options for the middleware.

Parameters

array|string $options

Return Value

string

at line 46
Response handle(Request $request, Closure $next, array|string $options = [])

Add cache related HTTP headers.

Parameters

Request $request
Closure $next
array|string $options

Return Value

Response

Exceptions

InvalidArgumentException

at line 83
protected array parseOptions(string $options)

Parse the given header options.

Parameters

string $options

Return Value

array