You are here

protected function Response::buildHeader in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/symfony/browser-kit/Response.php \Symfony\Component\BrowserKit\Response::buildHeader()

Returns the build header line.

Parameters

string $name The header name:

string $value The header value:

Return value

string The built header line

1 call to Response::buildHeader()
Response::__toString in vendor/symfony/browser-kit/Response.php
Converts the response object to string containing all headers and the response content.

File

vendor/symfony/browser-kit/Response.php, line 71

Class

Response
Response object.

Namespace

Symfony\Component\BrowserKit

Code

protected function buildHeader($name, $value) {
  return sprintf("%s: %s\n", $name, $value);
}