BR
Http Mutual Authentication
Using
Optional params: password and pathCertificate
/// Init HttpAuth with HttpAuthBuilder
/// sets [authPass] and [pathCertificate] for request
HttpAuth httpAuth = new HttpAuthBuilder(
authPass: "password", pathCertificate: "assets/certificate.p12")
.build;
/// Replace your url
httpAuth.getRequest("http://www.google.com").then((result){
/// Parse response with HttpAuth.parseBody -> String
HttpAuth.parseBody(result).then((resultString){
print("Results: $resultString");
});
});On this page
Languages
Dart100.0%
Latest Release
v1.0.0June 28, 2024BSD 3-Clause "New" or "Revised" License
Created May 23, 2019
Updated June 28, 2024