SproutCMS

This is the code documentation for the SproutCMS project

function buildHeadersString()

Converts an array of headers into a \r\n-delimeted string

Accepts three formats:
 - Strings will be passed through as is.
 - Arrays of strings (with numeric keys) will be used as-is
 - Arrays of strings (with string keys) will be joined
   using : to separate the key and value. Also, values
   containing quotes or spaces will be quoted.

Usage

string HttpReq::buildHeadersString ( string/array $headers );

Arguments

  1. string/array $headers
    The headers to process

Return value

  • string
    HTTP headers