class RequestContext

internal  
 

Keep an MCP invocation's request available through eager and lazy handlers.

Constants

LIBRARY_SCRIPTS_CONTEXT_KEY

Methods

static mixed
run(Request $request, callable $callback)

Run an operation with its request and preserve lazy response ownership.

Details

at line 24
static mixed run(Request $request, callable $callback)

Run an operation with its request and preserve lazy response ownership.

Parameters

Request $request
callable $callback

Return Value

mixed