public static function HttpHeaderInterface::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.
2 methods override HttpHeaderInterface::create()
- HttpHeader::create in src/
Http/ HttpHeader.php - Creates a header object from the key and value strings.
- HttpHeaderNull::create in src/
Http/ HttpHeaderNull.php - Creates a header object from the key and value strings.
File
- src/
Http/ HttpHeaderInterface.php, line 23 - Contains \Drupal\restful\Http\HttpHeaderInterface
Class
Namespace
Drupal\restful\HttpCode
public static function create($key, $value);