/**
  * Converts a request into an array for stream_context_create().
  * 
  * @param Message\Request $request A request object
  * 
  * @return array An array for stream_context_create()
  */
 public function getStreamContextArray(Message\Request $request)
 {
     return array('http' => array('method' => $request->getMethod(), 'header' => implode("\r\n", $request->getHeaders()), 'content' => $request->getContent(), 'protocol_version' => $request->getProtocolVersion(), 'ignore_errors' => $this->getIgnoreErrors(), 'max_redirects' => $this->getMaxRedirects(), 'timeout' => $this->getTimeout()));
 }