You are here

public function HttpHeader::__toString in RESTful 7.2

Returns the string version of the header.

Return value

string

File

src/Http/HttpHeader.php, line 87
Contains \Drupal\restful\Http\HttpHeader

Class

HttpHeader

Namespace

Drupal\restful\Http

Code

public function __toString() {
  return $this->name . ': ' . $this
    ->getValueString();
}