You are here

function background_process_build_headers in Background Process 8

Same name and namespace in other branches
  1. 6 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()

Implements to Transform header array from key/value to strings.

File

./background_process.module, line 868
This module implements a framework for calling funtions in the background.

Code

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