You are here

function background_process_build_headers in Background Process 6

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

Transform header array from key/value to strings.

Parameters

$headers: array of headers in key/value style

Return value

array array of strings.

File

./background_process.module, line 945

Code

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