Multipart requests
Closed this issue · 2 comments
0x1Roshan commented
How to import and use multipart requests http.MultipartRequest
?
nkshah2 commented
Hi @0x1Roshan
Try something like this:
import 'package:supertokens_flutter/http.dart' as http;
import 'package:http/http.dart' as originalHttp;
void makeCall() {
var uri = Uri.https("example.com", "create");
var request = originalHttp.MultipartRequest("POST", uri);
var response = http.send(request);
}
nkshah2 commented
Closing this since we haven't heard back from you yet, feel free to re-open