function background_process_build_headers in Background Process 7
Same name and namespace in other branches
- 8 background_process.module \background_process_build_headers()
- 6 background_process.module \background_process_build_headers()
- 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;
}