Final Class Yiisoft\ErrorHandler\HeadersProvider
| Inheritance | Yiisoft\ErrorHandler\HeadersProvider |
|---|
HeadersProvider provides headers for error response.
It is used by {@see \Yiisoft\ErrorHandler\Middleware\ErrorCatcher} to add headers to response in case of error.
Public Methods
| Method | Description | Defined By |
|---|---|---|
| __construct() | Yiisoft\ErrorHandler\HeadersProvider | |
| add() | Adds a header to the list of headers. | Yiisoft\ErrorHandler\HeadersProvider |
| getAll() | Returns all headers. | Yiisoft\ErrorHandler\HeadersProvider |
Method Details
| public mixed __construct ( array<string, string[]> $headers = [] ) | ||
| $headers | array<string, string[]> |
Default headers list. |
public function __construct(
private array $headers = [],
) {
}
Signup or Login in order to comment.