http_mutual_authentication 1.0.0 copy "http_mutual_authentication: ^1.0.0" to clipboard
http_mutual_authentication: ^1.0.0 copied to clipboard

Dart Http Mutual Authentication for Flutter, Multi-platform, HttpAuth.

example/main.dart

import 'package:http_mutual_authentication/http_mutual_authentication.dart';

void main() {
  /// 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");
    });
  });
}
0
likes
40
points
32
downloads

Publisher

unverified uploader

Weekly Downloads

Dart Http Mutual Authentication for Flutter, Multi-platform, HttpAuth.

Repository (GitHub)
View/report issues

License

BSD-3-Clause (license)

Dependencies

flutter

More

Packages that depend on http_mutual_authentication