Example #1
0
File: Curl.php Project: xaamin/curl
 /**
  * Verifies if body is XML string
  * 
  * @param  mixed    $params 
  * @return bool
  */
 private function hasXmlContentType($params)
 {
     $header = $this->headerManager->get('Content-Type');
     if (preg_match($this->xmlPattern, $header)) {
         return true;
     }
     return false;
 }
Example #2
0
 /**
  * Return all headers
  * 
  * @return mixed
  */
 public function getHeaders()
 {
     return $this->headerManager->get();
 }