Closed apoorvdwi closed 3 months ago
@ashitaprasad @animator please review this PR Let me know if you face any difficulties in running the code
Here is a screenshot of the code runs just in case
Multipart implementation is bloated and can be heavily simplified. Take a look at https://docs.php-http.org/en/latest/components/multipart-stream-builder.html
@animator let me know if any more changes are required
Why are you hardcoding boundary? MultipartStreamBuilder already adds a boundary that can be obtained using
$boundary = $builder->getBoundary();
Yes, we can use that as well or we can pass a custom boundary as well. I was using the later way. I have made the changes to use default boundary from multiparts builder
Thanks for fixing the issue. LGTM 🚀
PR Description
This PR adds codegen for PHP httpPlug
Related Issues
Checklist
main
branch before making this PRflutter test
) and all tests are passingAdded/updated tests?
We encourage you to add relevant test cases.
Steps to run
I prepared a simple dockerfile that eases the running of PHP code given below
composer.json
file in the same folder with below content./<filename>
http://localhost/script.php
or run the below curl in separate in terminal to see the output