simple_auth icon indicating copy to clipboard operation
simple_auth copied to clipboard

Feature request - Implement multipart request

Open bunnywrote opened this issue 6 years ago • 1 comments

At the moment the method BaseRequest toHttpRequest(String baseUrl) generates only simple http-requests: final baseRequest = new http.Request(_getMethod(method), uri);. It would be nice to be able to create a multipart http-request.

http package docs

bunnywrote avatar Apr 03 '19 14:04 bunnywrote

So the hard part is making this generic enough. I am trying to think the right way to do it. Multipart is hard. If you were to subclass Request you could then add the specific properties you need for multipart. Then override the toHttpRequest and mix it in just like the doc says.

Clancey avatar Apr 03 '19 16:04 Clancey