src/Net/HTTP/Response.php
public function setBody( $body )
	{
		if( !is_string( $body ) )
			throw new InvalidArgumentException( 'Body must be string' );
		$this->body		= trim( $body );
		$this->headers->setFieldPair( "Content-Length", strlen( $this->body ), TRUE );
	}
public function setBody( $body )
	{
		if( !is_string( $body ) )
			throw new InvalidArgumentException( 'Body must be string' );
		$this->body		= trim( $body );
		$this->headers->setFieldPair( "Content-Length", strlen( $this->body ), TRUE );
	}
public function setBody ( $ body ) { if ( ! is_string ( $ body ) ) throw new InvalidArgumentException ( 'Body must be string' ) ; $ this -> body = trim ( $ body ) ; $ this -> headers -> setFieldPair ( "Content-Length" , strlen ( $ this -> body ) , TRUE ) ; }
Sets response message body.
@access		public
@param		string		$body			Response message body
@return		void
Sets response message body .