@@ 235-241 (lines=7) @@ | ||
232 | ||
233 | /* no body */ |
|
234 | ||
235 | protected function ini($method, $url, $data , array $options = array()) |
|
236 | { |
|
237 | $options = array('url' => $url, 'method' => $method, 'data' => $data) + $options; |
|
238 | $this->addOptions($options); |
|
239 | ||
240 | return $this; |
|
241 | } |
|
242 | ||
243 | public function addOptions(array $options = array()) |
|
244 | { |
@@ 40-48 (lines=9) @@ | ||
37 | self::$multiHandler = curl_multi_init(); |
|
38 | } |
|
39 | ||
40 | public function add($method, $uri, $payload, array $options = array()) |
|
41 | { |
|
42 | $options = array( |
|
43 | 'method' => $method, |
|
44 | 'url' => $uri, |
|
45 | 'data' => $payload, |
|
46 | ) + $options; |
|
47 | $this->addOptions(array($options)); |
|
48 | return $this; |
|
49 | } |
|
50 | ||
51 | /** |