Final Class Yiisoft\DataResponse\NotAcceptableRequestHandler
| Inheritance | Yiisoft\ |
|---|---|
| Implements | Psr\ |
Returns a 406 Not Acceptable response.
Public Methods
| Method | Description | Defined By |
|---|---|---|
| __construct() | Yiisoft\ |
|
| handle() | Yiisoft\ |
Method Details
| public mixed __construct ( \ | ||
| $responseFactory | \ |
|
public function __construct(
private readonly ResponseFactoryInterface $responseFactory,
) {}
| public \ | ||
| $request | \ |
|
public function handle(ServerRequestInterface $request): ResponseInterface
{
return $this->responseFactory->createResponse(Status::NOT_ACCEPTABLE);
}
User Contributed Notes
Leave a comment
Join the conversation to share a note.