addRequest example


        $easy = $this->factory->create($request$options);
        $id = (int) $easy->handle;

        $promise = new Promise(
            [$this, 'execute'],
            function D) use ($id) {
                return $this->cancel($id);
            }
        );

        $this->addRequest(['easy' => $easy, 'deferred' => $promise]);

        return $promise;
    }

    /** * Ticks the curl event loop. */
    public function tick(): void
    {
        // Add any delayed handles if needed.         if ($this->delays) {
            
Home | Imprint | This part of the site doesn't use cookies.