original_string: public function setHeaders($name, $value = null)
  	{
  		//Verifying if is array
  		if (is_array($name)) {
  			foreach ($name as $k => $v) {
  				if (is_string($k)) {
  					$this->setHeaders($k, $v);
  				} else {
  					$this->setHeaders($v, null);
  				}
  			}
  		} else {
  			// Verifying if is a string without $value parameter
  			if (is_null($value) && (strpos($name, ':') > 0)) {
  				list($name, $value) = explode(':', $name, 2);
  			}
  			
  			if (is_null($value) || $value === false) {
  				unset($this->headers[$name]);
  			} else {
  				if (is_string($value)) {
  					$value = trim($value);
  				}
  				$this->headers[$name] = $value;
  			}
  		}
  		
  		return $this;
  	}
code: public function setHeaders($name, $value = null)
  	{
  		//Verifying if is array
  		if (is_array($name)) {
  			foreach ($name as $k => $v) {
  				if (is_string($k)) {
  					$this->setHeaders($k, $v);
  				} else {
  					$this->setHeaders($v, null);
  				}
  			}
  		} else {
  			// Verifying if is a string without $value parameter
  			if (is_null($value) && (strpos($name, ':') > 0)) {
  				list($name, $value) = explode(':', $name, 2);
  			}
  			
  			if (is_null($value) || $value === false) {
  				unset($this->headers[$name]);
  			} else {
  				if (is_string($value)) {
  					$value = trim($value);
  				}
  				$this->headers[$name] = $value;
  			}
  		}
  		
  		return $this;
  	}
code_tokens: public function setHeaders ( $ name , $ value = null ) { //Verifying if is array if ( is_array ( $ name ) ) { foreach ( $ name as $ k => $ v ) { if ( is_string ( $ k ) ) { $ this -> setHeaders ( $ k , $ v ) ; } else { $ this -> setHeaders ( $ v , null ) ; } } } else { // Verifying if is a string without $value parameter if ( is_null ( $ value ) && ( strpos ( $ name , ':' ) > 0 ) ) { list ( $ name , $ value ) = explode ( ':' , $ name , 2 ) ; } if ( is_null ( $ value ) || $ value === false ) { unset ( $ this -> headers [ $ name ] ) ; } else { if ( is_string ( $ value ) ) { $ value = trim ( $ value ) ; } $ this -> headers [ $ name ] = $ value ; } } return $ this ; }
docstring: Set the headers to send in request
  
  @param string|array $name The header name or an associative array with mutiples headers
  @param mixed $value
  @return \Slice\Http\Client
docstring_tokens: Set the headers to send in request