Lines Matching refs:this
24 if (false === $this->mh = curl_multi_init()) {
28 $this->addServerPushCallback();
30 $this->curl = curl_init();
31 curl_setopt($this->curl, CURLOPT_PROTOCOLS, CURLPROTO_HTTP | CURLPROTO_HTTPS);
32 curl_setopt($this->curl, CURLOPT_REDIR_PROTOCOLS, CURLPROTO_HTTP | CURLPROTO_HTTPS);
33 curl_setopt($this->curl, CURLOPT_HEADER, false);
34 curl_setopt($this->curl, CURLOPT_RETURNTRANSFER, false);
35 curl_setopt($this->curl, CURLOPT_FAILONERROR, false);
36 curl_setopt($this->curl, CURLOPT_URL, 'https://localhost/serverpush');
37 curl_setopt($this->curl, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_2_0);
38 curl_setopt($this->curl, CURLOPT_HEADERFUNCTION, function ($ch, $data) {
41 curl_setopt($this->curl, CURLOPT_WRITEFUNCTION, function ($ch, $data) {
44 curl_multi_add_handle($this->mh, $this->curl);
49 $mrc = curl_multi_exec($this->mh, $stillRunning);
52 $info = curl_multi_info_read($this->mh);
70 curl_multi_setopt($this->mh, CURLMOPT_PIPELINING, CURLPIPE_MULTIPLEX);
71 curl_multi_setopt($this->mh, CURLMOPT_PUSHFUNCTION, $callback);