Ejemplo n.º 1
0
 /**
  * On pre send event.
  *
  * @param \Ivory\HttpAdapter\Event\PreSendEvent $event The pre send event.
  */
 public function onPreSend(PreSendEvent $event)
 {
     $event->setRequest($this->cookieJar->populate($event->getRequest()));
 }
Ejemplo n.º 2
0
 /**
  * On pre send event.
  *
  * @param \Ivory\HttpAdapter\Event\PreSendEvent $event The pre send event.
  */
 public function onPreSend(PreSendEvent $event)
 {
     $event->setRequest($this->getTimer()->start($event->getRequest()));
 }
Ejemplo n.º 3
0
 /**
  * On pre send event.
  *
  * @param \Ivory\HttpAdapter\Event\PreSendEvent $event The pre send event.
  */
 public function onPreSend(PreSendEvent $event)
 {
     $event->setRequest($this->basicAuth->authenticate($event->getRequest()));
 }