You are here

public function EasyRdf_Http_Response::asString in Zircon Profile 8.0

Same name and namespace in other branches
  1. 8 vendor/easyrdf/easyrdf/lib/EasyRdf/Http/Response.php \EasyRdf_Http_Response::asString()

Get the entire response as string

Parameters

string $br Line breaks (eg. "\n", "\r\n", "<br />"):

Return value

string

1 call to EasyRdf_Http_Response::asString()
EasyRdf_Http_Response::__toString in vendor/easyrdf/easyrdf/lib/EasyRdf/Http/Response.php
Implements magic __toString()

File

vendor/easyrdf/easyrdf/lib/EasyRdf/Http/Response.php, line 346

Class

EasyRdf_Http_Response
Class that represents an HTTP 1.0 / 1.1 response message.

Code

public function asString($br = "\n") {
  return $this
    ->getHeadersAsString(true, $br) . $br . $this
    ->getRawBody();
}