Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. functions.php

function headers_from_lines

Parses an array of header lines into an associative array of headers.

Parameters

iterable $lines Header lines array of strings in the following: format: "Name: Value"

Deprecated

headers_from_lines will be removed in guzzlehttp/guzzle:8.0. Use Utils::headersFromLines instead.

File

vendor/guzzlehttp/guzzle/src/functions.php, line 29

Namespace

GuzzleHttp

Code

function headers_from_lines(iterable $lines) : array {
    return Utils::headersFromLines($lines);
}
RSS feed
Powered by Drupal