http
http copied to clipboard
Add header parameter to Request option
Current:
Request('POST', Uri.http("localhost:8080", "/api/$method"));
Desired:
Request('POST', Uri.http("localhost:8080", "/api/$method"), headers: { "key" : "value" });
Thanks.