Requests icon indicating copy to clipboard operation
Requests copied to clipboard

Question: Are there near-term plans for PSR-7 Message Interface compatibility?

Open skyzyx opened this issue 6 years ago • 6 comments

Are there near-term plans for PSR-7 Message Interface compatibility?

I'm developing some new software which leverages PSR-7 pretty heavily, and I'm wanting to write some tutorials for how to use it alongside Guzzle, Buzz, and Requests.

I know that Requests pre-dates PSR-7 by many years, but I didn't know if you had plans for a PSR-7 update.

skyzyx avatar Feb 26 '18 07:02 skyzyx

There's not really any near-term plans generally, as this project isn't on the front of my mind, but I do want to add PSR-7 some day. I had started work on a compatibility layer, and it was definitely possible, but we're missing the file streaming support which IIRC we need.

If you're interested in contributing to or helping maintain Requests, I could always use help. 😉

rmccue avatar Mar 07 '18 12:03 rmccue

Bumping this in light of the recent v2 release

mediaformat avatar Nov 26 '21 03:11 mediaformat

@mediaformat ;-)

First focus was to work through the technical debt which had build up over the years. Next focus is bug fixes and new features.

Let's discuss this and we'd be happy to consider PRs, though in this case, a discussion on how to implement it first would probably be best.

jrfnl avatar Nov 26 '21 11:11 jrfnl

Is there interest in being able to use the library as a PSR-18 HTTP client? The basis for this would be a PSR-7 implementation and I would be interested in helping with this.

The background is that I am helping to refactor SimplePie and plan to deprecate the SimplePie_File class and allow the usage of PSR-18 HTTP client and PSR-17 RequestFactory.

Art4 avatar Aug 31 '22 08:08 Art4

@Art4 In my opinion that would be a useful addition. We have semi-regular maintainer calls/working sessions. I'll put it on the agenda to discuss in the next one (and you'd be welcome to join the call if you'd like to discuss it in person).

jrfnl avatar Sep 04 '22 09:09 jrfnl

Thanks for the invitation, but I'm afraid my work schedule won't allow me to have an in-person call.

My biggest question to start with a first draft is how and where to put the PSR interfaces, because I suspect that a new non-dev dependency is not allowed in composer.json?

Art4 avatar Sep 05 '22 09:09 Art4

I was wondering if anyone could take a look at #768? I'm not quite done yet, but wanted to know if the direction is right.

Art4 avatar Sep 27 '22 12:09 Art4