Methods

An instance of a class handling Http Responses.

getHttpResponse() : \Zend\Feed\PubSubHubbub\HttpResponse | \Zend\Http\PhpEnvironment\Response

This is implemented in Zend\Feed\Pubsubhubbub\HttpResponse which shares an unenforced interface with (i.e. not inherited from) Zend\Feed\Pubsubhubbub\AbstractCallback.

Returns

Handle any callback from a Hub Server responding to a subscription or unsubscription request.

handle(array $httpData, bool $sendResponseNow) 

This should be the Hub Server confirming the the request prior to taking action on it.

Parameters

$httpData

array

GET/POST data if available and not in $_GET/POST

$sendResponseNow

bool

Whether to send response now or when asked

Send the response, including all headers.

sendResponse() : void

If you wish to handle this via Zend\Mvc\Controller, use the getter methods to retrieve any data needed to be set on your HTTP Response object, or simply give this object the HTTP Response instance to work with for you!

An instance of a class handling Http Responses.

setHttpResponse(\Zend\Feed\PubSubHubbub\HttpResponse | \Zend\Http\PhpEnvironment\Response $httpResponse) 

This is implemented in Zend\Feed\Pubsubhubbub\HttpResponse which shares an unenforced interface with (i.e. not inherited from) Zend\Feed\Pubsubhubbub\AbstractCallback.

Parameters