Comments (4)
quick idea: detect whether the GuzzleHttp\Psr7\MultipartStream
class exist, and use it in the implementation of MultipartStreamBuilder instead of building a stream in memory (the stream built in memory can still be used as fallback). This would allow giving a better experience (i.e. not OOM errors) to people using guzzlehttp/psr7.
This would only involve moving the header preparation to the build
time (or least storing the name, to be able to pass it to guzzle, which will ignore it because the content-disposition header would be built already)
from message.
Yeah. I know. Hm.
If I remember correctly, I had a hard time achieving this working with the PSR7 interfaces only. But it should be revisited.
from message.
Well, AFAIK, AppendSteam is a pure-PSR-7 stream wrapping other ones. And MultipartStream builds on top of it.
In the meantime, I might investigate using GuzzleHttp\Psr7\MultipartStream
instead (as I'm using guzzlehttp/psr7
as PSR-7 implementation anyway
from message.
from message.
Related Issues (20)
- Tag new version HOT 1
- PSR-17 compatibility ? HOT 5
- DiactorosMessageFactory createResponse does not rewind strem if created with string body HOT 6
- Additional implementations of RequestMatcher HOT 1
- Package zendframework/zend-diactoros is abandoned HOT 3
- FullHttpMessageFormatter should be smarter about formatting binary request/response bodies HOT 3
- Release plans HOT 2
- Binary string detection is broken (introduced with 1.9.0) HOT 2
- Bug: Call to undefined function GuzzleHttp\\Psr7\\uri_for()
- GuzzleStreamFactory and guzzle/psr7:^2.0 HOT 1
- WSSE Authentication
- Expose request to resonse formatter HOT 6
- Compatibility issue since version 1.14.0 HOT 2
- CI: Add testrun for "psr/http-message" v2 with slim HOT 2
- GuzzleStreamFactory not compatible with cache-plugin v2 HOT 10
- Reading GzipDecodeStream causes Uncaught RuntimeException: Unable to perform operation on closed stream HOT 5
- Unable to format binary payload as command HOT 5
- CurlFormatter fails on large boddies HOT 3
- Oauth 2 authentication plugin HOT 6
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from message.