Overview

Namespaces

  • Guzzle
    • Batch
      • Exception
    • Cache
    • Common
      • Exception
    • Http
      • Curl
      • Exception
      • Message
        • Header
      • 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
    • Tests
      • Batch
      • Cache
      • Common
        • Cache
        • Exception
      • Http
        • Curl
        • Exception
        • Message
          • Header
      • Inflection
      • Iterator
      • Log
      • Message
      • Mock
      • Parser
        • Cookie
        • Message
      • Parsers
        • UriTemplate
      • Plugin
        • Async
        • Backoff
        • Cache
        • Cookie
          • CookieJar
        • CurlAuth
        • ErrorResponse
        • History
        • Log
        • Md5
        • Mock
        • Oauth
        • Redirect
      • Service
        • Builder
        • Command
          • LocationVisitor
            • Request
            • Response
        • Description
        • Exception
        • Mock
          • Command
            • Sub
          • Model
        • Resource
      • Stream
  • None
  • Omnipay
    • Common
      • Exception
      • Message
    • Dummy
      • Message
    • VivaPayments
      • Message
  • PHP

Classes

  • CurlHandle
  • CurlMulti
  • CurlMultiProxy
  • CurlVersion
  • RequestMediator

Interfaces

  • CurlMultiInterface
  • Overview
  • Namespace
  • Class
  • Tree

Class RequestMediator

Mediator between curl handles and request objects

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

Parameters

$request
Request to mediate
$emitIo
Set to true to dispatch events on input and output
public integer
# receiveResponseHeader( resource $curl, string $header )

Receive a response header from curl

Receive a response header from curl

Parameters

$curl
Curl handle
$header
Received header

Returns

integer
public
# progress( integer $downloadSize, integer $downloaded, integer $uploadSize, integer $uploaded, resource $handle = null )

Received a progress notification

Received a progress notification

Parameters

$downloadSize
Total download size
$downloaded
Amount of bytes downloaded
$uploadSize
Total upload size
$uploaded
Amount of bytes uploaded
$handle
CurlHandle object
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
Curl handle
$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
Curl handle
$fd
File descriptor
$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

#
Omnipay Viva Payments Gateway Module API Documentation API documentation generated by ApiGen