You are here

private static function MessageTrait::assertValidHeaderValue in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/zendframework/zend-diactoros/src/MessageTrait.php \Zend\Diactoros\MessageTrait::assertValidHeaderValue()

Assert that the provided header values are valid.

Parameters

string[] $values:

Throws

InvalidArgumentException

See also

http://tools.ietf.org/html/rfc7230#section-3.2

2 calls to MessageTrait::assertValidHeaderValue()
MessageTrait::withAddedHeader in vendor/zendframework/zend-diactoros/src/MessageTrait.php
Return an instance with the specified header appended with the given value.
MessageTrait::withHeader in vendor/zendframework/zend-diactoros/src/MessageTrait.php
Return an instance with the provided header, replacing any existing values of any headers with the same case-insensitive name.

File

vendor/zendframework/zend-diactoros/src/MessageTrait.php, line 379

Class

MessageTrait
Trait implementing the various methods defined in MessageInterface.

Namespace

Zend\Diactoros

Code

private static function assertValidHeaderValue(array $values) {
  array_walk($values, __NAMESPACE__ . '\\HeaderSecurity::assertValid');
}