Skip to content
docsv0.1.0

LiveHttpRequest

Framework-agnostic input for {@see LiveEndpoint}. Deliberately built from scalars/arrays (not `StateSnapshot`/`InteractionRequest`) because the caller — an untrusted HTTP client — has not been verified yet; the endpoint is what turns this into trusted value objects, or rejects it.

LiveHttpRequest::__construct()

public function __construct(string $method, string $action, string $stateEnvelope, array $payload, string $sessionId, string $csrfToken):

Parameters

Parameters of __construct()
NameTypeDescription
$methodstring
$actionstring
$stateEnvelopestring
$payloadarray<string, mixed>
$sessionIdstring
$csrfTokenstring