tmhOAuth::streaming_request
Make a long poll HTTP request using this library. This method is different to the other request methods as it isn't supposed to disconnect
Using this method expects a callback which will receive the streaming responses.
Signature
public function streaming_request(string
$method,
string
$url,
[array
$params = ,
[string
$callback = '']] )
Parameters
$method
— string- the HTTP method being used. e.g. POST, GET, HEAD etc
$url
— string- the request URL without query string parameters
$params
— array- the request parameters as an array of key=value pairs
$callback
— string- the callback function to stream the buffer to.
Returns
- void