Also PSR-7 not "include" PSR-17 - maybe that stream created without 
factory, we dont know.

пятница, 11 октября 2019 г., 3:05:42 UTC+3 пользователь Woody Gilk написал:
>
> Create a new stream using PSR-17 StreamFactory. 
>
> On Thu, Oct 10, 2019 at 6:42 PM Anton Fedonjuk <antonf...@gmail.com 
> <javascript:>> wrote:
>
>> Class contains method setRequest(RequestInterface $request), his abstact 
>> code:
>> Request body already sets: $request->getBody()->write('...');
>> I want send this request with other body content, but dont know how:
>> 1. StreamInterface don't have methods as PHP ftruncate()
>> 2. Constructor not defined in StreamInterface: can't use 
>> $request->withBody() because dont know how create clone of that Steam 
>> object without contents.
>>
>>
>> -- 
>> You received this message because you are subscribed to the Google Groups 
>> "PHP Framework Interoperability Group" group.
>> To unsubscribe from this group and stop receiving emails from it, send an 
>> email to php...@googlegroups.com <javascript:>.
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/php-fig/84a56774-1dbf-4ec3-b906-b29e8b322add%40googlegroups.com
>>  
>> <https://groups.google.com/d/msgid/php-fig/84a56774-1dbf-4ec3-b906-b29e8b322add%40googlegroups.com?utm_medium=email&utm_source=footer>
>> .
>>
> -- 
> --
> Woody Gilk
> https://www.shadowhand.com
>

-- 
You received this message because you are subscribed to the Google Groups "PHP 
Framework Interoperability Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to php-fig+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/php-fig/abf0cf2f-056a-4d03-867e-9aa772a56cc1%40googlegroups.com.

Reply via email to