You are here

function background_process_build_headers in Background Process 7.2

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 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.http.inc, line 50
This contains the HTTP functions for Background Process.

Code

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