You are here

public static function HttpHeaderNull::create in RESTful 7.2

Creates a header object from the key and value strings.

Parameters

string $key: The header name.

string $value: The header value.

Return value

HttpHeaderInterface The parsed header.

Overrides HttpHeaderInterface::create

1 call to HttpHeaderNull::create()
HttpHeaderBag::get in src/Http/HttpHeaderBag.php
Get the the header object for a header name or ID.

File

src/Http/HttpHeaderNull.php, line 48
Contains \Drupal\restful\Http\HttpHeaderNull

Class

HttpHeaderNull

Namespace

Drupal\restful\Http

Code

public static function create($key, $value) {
  return new static(NULL, array(), NULL);
}