\Guzzle\Plugin\Md5CommandContentMd5Plugin

Listener used to add a ContentMD5 header to the body of a command and adds ContentMD5 validation if the ValidateMD5 option is not set to false on a command

Summary

Methods
Properties
Constants
__construct()
getSubscribedEvents()
onCommandBeforeSend()
No public properties found
No constants found
No protected methods found
$contentMd5Param
$validateMd5Param
N/A
No private methods found
No private properties found
N/A

Properties

$contentMd5Param

$contentMd5Param : string

Type

string — Parameter used to check if the ContentMD5 value is being added

$validateMd5Param

$validateMd5Param : string

Type

string — Parameter used to check if validation should occur on the response

Methods

__construct()

__construct(string  $contentMd5Param = 'ContentMD5', string  $validateMd5Param = 'ValidateMD5') 

Parameters

string $contentMd5Param

Parameter used to check if the ContentMD5 value is being added

string $validateMd5Param

Parameter used to check if validation should occur on the response

getSubscribedEvents()

getSubscribedEvents() : array

Returns an array of event names this subscriber wants to listen to.

The array keys are event names and the value can be:

  • The method name to call (priority defaults to 0)
  • An array composed of the method name to call and the priority
  • An array of arrays composed of the method names to call and respective priorities, or 0 if unset

For instance:

  • array('eventName' => 'methodName')
  • array('eventName' => array('methodName', $priority))
  • array('eventName' => array(array('methodName1', $priority), array('methodName2')))

Returns

array —

The event names to listen to

onCommandBeforeSend()

onCommandBeforeSend(\Guzzle\Common\Event  $event) 

Parameters

\Guzzle\Common\Event $event