Overview

Namespaces

  • Contrib
    • Bundle
      • CoverallsBundle
        • Console
        • Entity
      • CoverallsV1Bundle
        • Api
        • Collector
        • Command
        • Config
        • Entity
          • Git
    • Component
      • File
      • Log
      • System
        • Git
  • Guzzle
    • Batch
      • Exception
    • Cache
    • Common
      • Exception
    • Http
      • Curl
      • Exception
      • Message
      • QueryAggregator
    • Inflection
    • Iterator
    • Log
    • Parser
      • Cookie
      • Message
      • UriTemplate
      • Url
    • Plugin
      • Async
      • Backoff
      • Cache
      • Cookie
        • CookieJar
        • Exception
      • CurlAuth
      • ErrorResponse
        • Exception
      • History
      • Log
      • Md5
      • Mock
      • Oauth
    • Service
      • Builder
      • Command
        • Factory
        • LocationVisitor
          • Request
          • Response
      • Description
      • Exception
      • Resource
    • Stream
  • PHP
  • Psr
    • Log
  • Symfony
    • Component
      • Config
        • Definition
          • Builder
          • Exception
        • Exception
        • Loader
        • Resource
        • Util
      • Console
        • Command
        • Formatter
        • Helper
        • Input
        • Output
        • Tester
      • EventDispatcher
        • Debug
      • Finder
        • Adapter
        • Comparator
        • Exception
        • Expression
        • Iterator
        • Shell
      • Stopwatch
      • Yaml
        • Exception

Classes

  • CurlHandle
  • CurlMulti
  • CurlMultiProxy
  • CurlVersion
  • RequestMediator

Interfaces

  • CurlMultiInterface
  • Overview
  • Namespace
  • Class
  • Tree
  • Todo

Class RequestMediator

Mediator between curl handles and request objects

Namespace: Guzzle\Http\Curl
Located at Guzzle/Http/Curl/RequestMediator.php
Methods summary
public
# __construct( Guzzle\Http\Message\RequestInterface $request, boolean $emitIo = false )

Parameters

$request
Guzzle\Http\Message\RequestInterface
$request Request to mediate
$emitIo
boolean
$emitIo Set to true to dispatch events on input and output
public Guzzle\Http\Curl\RequestMediator
# setCurlHandle( Guzzle\Http\Curl\CurlHandle $handle )

Set the associated CurlHandle object

Set the associated CurlHandle object

Parameters

$handle
Guzzle\Http\Curl\CurlHandle
$handle Curl handle

Returns

Guzzle\Http\Curl\RequestMediator
public integer
# receiveResponseHeader( resource $curl, string $header )

Receive a response header from curl

Receive a response header from curl

Parameters

$curl
resource
$curl Curl handle
$header
string
$header Received header

Returns

integer
public
# progress( integer $downloadSize, integer $downloaded, integer $uploadSize, integer $uploaded )

Received a progress notification

Received a progress notification

Parameters

$downloadSize
integer
$downloadSize Total download size
$downloaded
integer
$downloaded Amount of bytes downloaded
$uploadSize
integer
$uploadSize Total upload size
$uploaded
integer
$uploaded Amount of bytes uploaded
public integer
# writeResponseBody( resource $curl, string $write )

Write data to the response body of a request

Write data to the response body of a request

Parameters

$curl
resource
$curl Curl handle
$write
string
$write Data that was received

Returns

integer
public string
# readRequestBody( resource $ch, resource $fd, integer $length )

Read data from the request body and send it to curl

Read data from the request body and send it to curl

Parameters

$ch
resource
$ch Curl handle
$fd
resource
$fd File descriptor
$length
integer
$length Amount of data to read

Returns

string
Properties summary
protected Guzzle\Http\Message\RequestInterface $request
#
protected boolean $emitIo
#

Whether or not to emit read/write events

Whether or not to emit read/write events

protected Guzzle\Http\Curl\CurlHandle $curlHandle
#
php-coveralls API documentation generated by ApiGen 2.8.0