class SetCacheHeaders (View source)

Methods

static string
using(array|string $options)

Specify the options for the middleware.

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

Add cache related HTTP headers.

array
parseOptions(string $options)

Parse the given header options.

Details

static string using(array|string $options)

Specify the options for the middleware.

Parameters

array|string $options

Return Value

string

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

Add cache related HTTP headers.

Parameters

Request $request
Closure $next
string|array $options

Return Value

Response

Exceptions

InvalidArgumentException

protected array parseOptions(string $options)

Parse the given header options.

Parameters

string $options

Return Value

array