src/Http/Request.php
public function setBody($body, $content_type = false){
	
		// clear old body data
		$this->post->clear();
		$this->files->clear();
		
		// is this form data?
		if(is_array($body)){
			$body = http_build_query($body);
		}
		
		$this->body = (string)$body;
		
		// plain text should be: text/plain; charset=UTF-8
		if($content_type){
			$this->headers->set('content-type', $content_type);
		}
		
		// do it!
		$this->prepare();
	}
public function setBody($body, $content_type = false){
	
		// clear old body data
		$this->post->clear();
		$this->files->clear();
		
		// is this form data?
		if(is_array($body)){
			$body = http_build_query($body);
		}
		
		$this->body = (string)$body;
		
		// plain text should be: text/plain; charset=UTF-8
		if($content_type){
			$this->headers->set('content-type', $content_type);
		}
		
		// do it!
		$this->prepare();
	}
public function setBody ( $ body , $ content_type = false ) { // clear old body data
 $ this -> post -> clear ( ) ; $ this -> files -> clear ( ) ; // is this form data?
 if ( is_array ( $ body ) ) { $ body = http_build_query ( $ body ) ; } $ this -> body = ( string ) $ body ; // plain text should be: text/plain; charset=UTF-8
 if ( $ content_type ) { $ this -> headers -> set ( 'content-type' , $ content_type ) ; } // do it!
 $ this -> prepare ( ) ; }
will be ignored during PREPARE if post or files contain any values
will be ignored during PREPARE if post or files contain any values