src/Net/HTTP/Response.php
public function toString()
	{
		$lines	= array();
		$lines[]	= $this->protocol.'/'.$this->version.' '.$this->status;							//  add main protocol header
		$lines[]	= $this->headers->toString();													//  add header fields and line break
		if( strlen( $this->body ) )																	//  response body is set
			$lines[]	= $this->body;																//  add response body
		return join( "\r\n", $lines );																//  glue parts with line break and return result
	}
public function toString()
	{
		$lines	= array();
		$lines[]	= $this->protocol.'/'.$this->version.' '.$this->status;							//  add main protocol header
		$lines[]	= $this->headers->toString();													//  add header fields and line break
		if( strlen( $this->body ) )																	//  response body is set
			$lines[]	= $this->body;																//  add response body
		return join( "\r\n", $lines );																//  glue parts with line break and return result
	}
public function toString ( ) { $ lines = array ( ) ; $ lines [ ] = $ this -> protocol . '/' . $ this -> version . ' ' . $ this -> status ; //  add main protocol header $ lines [ ] = $ this -> headers -> toString ( ) ; //  add header fields and line break if ( strlen ( $ this -> body ) ) //  response body is set $ lines [ ] = $ this -> body ; //  add response body return join ( "\r\n" , $ lines ) ; //  glue parts with line break and return result }
Renders complete response string.
@access		public
@return		string
Renders complete response string .