You are here

public static function HttpHeader::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

12 calls to HttpHeader::create()
CacheDecoratedResource::view in src/Plugin/resource/Decorators/CacheDecoratedResource.php
Basic implementation for view.
DataProvider::setHttpHeader in src/Plugin/resource/DataProvider/DataProvider.php
Sets an HTTP header.
FormatterManager::processData in src/Formatter/FormatterManager.php
Helper function to get a formatter and apply a method.
HttpHeaderBag::__construct in src/Http/HttpHeaderBag.php
Constructor
RateLimitManager::checkRateLimit in src/RateLimit/RateLimitManager.php
Checks if the current request has reached the rate limit.

... See full list

File

src/Http/HttpHeader.php, line 53
Contains \Drupal\restful\Http\HttpHeader

Class

HttpHeader

Namespace

Drupal\restful\Http

Code

public static function create($key, $value) {
  list($extras, $values) = self::parseHeaderValue($value);
  return new static($key, $values, $extras);
}