You are here

function background_process_build_headers in Background Process 7

Same name and namespace in other branches
  1. 8 background_process.module \background_process_build_headers()
  2. 6 background_process.module \background_process_build_headers()
  3. 7.2 background_process.http.inc \background_process_build_headers()

Transform header array from key/value to strings.

Parameters

array $headers: Headers in key/value style

Return value

array Concatenated http headers.

File

./background_process.module, line 1039

Code

function background_process_build_headers($headers) {
  $header = array();
  foreach ($headers as $key => $value) {
    $header[] = "{$key}: {$value}";
  }
  return $header;
}