[RFC] Offer PSR-7 request as a replacement/alternative to \OCP\IRequest

I would like to propose another step towards more PSR in Nextcloud, this time for our request abstraction.

We currently have \OCP\IRequest as a good and useful accessor to the super globals and other request information.

However, some libraries only take the PSR-7 \Psr\Http\Message\ServerRequestInterface, like we see in the WebAuthn library.

For those cases it would be really helpful if Nextcloud provided the object with all data available as we have it through IRequest.

Eventually this couldn’t just be an alternative but a replacement to the proprietary abstraction.

I might open a PR for discussion if I find the time.



Draft PR with usage example: https://github.com/nextcloud/server/pull/31310

Very nice idea, I think it’s a good addition and (eventually) change!