public function __construct() { parent::__construct(null); }
protected function getProxiedFuture() { $future = parent::getProxiedFuture(); if (!$this->hasConstructedFuture) { $future->setMethod($this->method); $oauth_headers = $this->getOAuth1Headers(); $oauth_headers['oauth_signature'] = $this->getSignature(); $full_oauth_header = array(); foreach ($oauth_headers as $header => $value) { $full_oauth_header[] = $header . '="' . urlencode($value) . '"'; } $full_oauth_header = 'OAuth ' . implode(', ', $full_oauth_header); $future->addHeader('Authorization', $full_oauth_header); foreach ($this->headers as $header) { $future->addHeader($header[0], $header[1]); } $this->headers = array(); $this->hasConstructedFuture = true; } return $future; }
public function __construct(Future $proxied, $source, $scrub = false) { parent::__construct($proxied); $this->source = $source; $this->scrub = $scrub; }
public function resolve($timeout = null) { $this->isReady(); return parent::resolve($timeout); }
public function __construct(Future $proxied, $source) { parent::__construct($proxied); $this->source = $source; }