MCP PHP SDK

ResponseEvent

FinalYes

Event dispatched when a successful response is ready to be sent to the client.

Listeners can modify the response before it's sent.

Tags
author

Edouard Courty edouard.courty2@gmail.com

Table of Contents

Properties

$request  : Request
$response  : Response
$session  : SessionInterface

Methods

__construct()  : mixed
getMethod()  : string
getRequest()  : Request
getResponse()  : Response<string|int, mixed>
getSession()  : SessionInterface
setResponse()  : void

Properties

Methods

getMethod()

public getMethod() : string
Return values
string

        
On this page

Search results