ValidateMcpHeaders
class ValidateMcpHeaders
Methods
Response|null
unsupportedLegacyVersion(Request $request, mixed $id)
Validate the version on a request without modern metadata.
Details
at line 67
protected Response|null
unsupportedLegacyVersion(Request $request, mixed $id)
Validate the version on a request without modern metadata.
Legacy clients never send the method and name headers, but they do send the negotiated protocol version after the handshake.
at line 103
protected string|null
mismatch(Request $request, RequestHeader $header, mixed $expected, bool $required)
Describe a missing or mismatched protocol header.