HeaderBag::all()

array all() Returns the headers. Return Value array An array of headers

HeaderBag::addCacheControlDirective()

addCacheControlDirective(string $key, mixed $value = true) Adds a custom Cache-Control directive. Parameters string $key The Cache-Control directive name mixed $value The Cache-Control directive value

HeaderBag::add()

add(array $headers) Adds new headers the current HTTP headers set. Parameters array $headers An array of HTTP headers

HeaderBag

class HeaderBag implements IteratorAggregate, Countable HeaderBag is a container for HTTP headers. Methods __construct(array $headers = array()) Constructor. string __toString() Returns the headers as a string. array all() Returns the headers. array keys() Returns the parameter keys. replace(array $headers = array()) Replaces the current HTTP headers by a new set. add(array $headers) Adds new headers the current HTTP headers set. string|array get(string $key

HashParser

class HashParser implements ParserInterface CSS selector hash parser shortcut. This component is a port of the Python cssselect library, which is copyright Ian Bicking, see https://github.com/SimonSapin/cssselect. Methods SelectorNode[] parse(string $source) Parses given selector source into an array of tokens. Details SelectorNode[] parse(string $source) Parses given selector source into an array of tokens. Parameters string $source Return

HashNode::getSpecificity()

Specificity getSpecificity() Returns node's specificity. Return Value Specificity

HashNode::getSelector()

NodeInterface getSelector() Return Value NodeInterface

HashNode::getId()

string getId() Return Value string

HashNode

class HashNode extends AbstractNode Represents a "#" node. This component is a port of the Python cssselect library, which is copyright Ian Bicking, see https://github.com/SimonSapin/cssselect. Methods string getNodeName() from AbstractNode __construct(NodeInterface $selector, string $id) NodeInterface getSelector() string getId() Specificity getSpecificity() Returns node's specificity. string __toString() Returns node's string representation. Details

HashHandler

class HashHandler implements HandlerInterface CSS selector comment handler. This component is a port of the Python cssselect library, which is copyright Ian Bicking, see https://github.com/SimonSapin/cssselect. Methods __construct(TokenizerPatterns $patterns, TokenizerEscaping $escaping) bool handle(Reader $reader, TokenStream $stream) Details __construct(TokenizerPatterns $patterns, TokenizerEscaping $escaping) Parameters TokenizerPatt