You are here

public function HttpHeader::getValueString in RESTful 7.2

Gets the contents of the header.

Return value

string The header value as a string.

Overrides HttpHeaderInterface::getValueString

1 call to HttpHeader::getValueString()
HttpHeader::__toString in src/Http/HttpHeader.php
Returns the string version of the header.

File

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

Class

HttpHeader

Namespace

Drupal\restful\Http

Code

public function getValueString() {
  $parts = array();
  $parts[] = implode(', ', $this->values);
  $parts[] = $this->extras;
  return implode('; ', array_filter($parts));
}