You are here

public function ServerRequestInterface::getAttributes in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/psr/http-message/src/ServerRequestInterface.php \Psr\Http\Message\ServerRequestInterface::getAttributes()

Retrieve attributes derived from the request.

The request "attributes" may be used to allow injection of any parameters derived from the request: e.g., the results of path match operations; the results of decrypting cookies; the results of deserializing non-form-encoded message bodies; etc. Attributes will be application and request specific, and CAN be mutable.

Return value

array Attributes derived from the request.

2 methods override ServerRequestInterface::getAttributes()
ServerRequest::getAttributes in vendor/zendframework/zend-diactoros/src/ServerRequest.php
Retrieve attributes derived from the request.
ServerRequest::getAttributes in vendor/symfony/psr-http-message-bridge/Tests/Fixtures/ServerRequest.php
Retrieve attributes derived from the request.

File

vendor/psr/http-message/src/ServerRequestInterface.php, line 210

Class

ServerRequestInterface
Representation of an incoming, server-side HTTP request.

Namespace

Psr\Http\Message

Code

public function getAttributes();