FLUTTER ECOSYSTEM

marcoesposito1988/http_auth

HTTP प्रमाणीकरण (बेसिक/डिजेस्ट) के लिए डार्ट http मध्यस्थता

http_auth प्रोजेक्ट कवर
Stars
19
Forks
11
अंतिम पुश (UTC)
24 जुल॰ 2026
प्रोजेक्ट स्थिति
सक्रिय
Marco Esposito GitHub avatar
GITHUB User

Marco Esposito ↗

भाषाएँDart

तकनीकी विषय

इस रिपॉज़िटरी के पैकेज

उपयोग की गई निर्भरताएँ

निर्भरता सूची 5 आइटम
  • http>=0.9.0 <2.0.0
  • crypto>=2.0.0 <4.0.0
  • convert>=2.1.0 <4.0.0
  • testडेवलपमेंट>=1.0.0 <2.0.0
  • lintsडेवलपमेंट^6.1.0

मूल README

यह अंग्रेज़ी मूल स्नैपशॉट है। नवीनतम सामग्री GitHub पर देखें।

README खोलें / बंद करें

pub package

http_auth

An http middleware for HTTP authentication (Basic/Digest).

The method (Basic or Digest) can optionally be autodetected.

Usage

HTTP Basic authentication:

    import 'package:http_auth/http_auth.dart';

    main() async {
      var client = http_auth.BasicAuthClient('user', 'passwd');
      var response = client.get('http://httpbin.org/basic-auth/user/passwd');
    }

HTTP Digest authentication:

    import 'package:http_auth/http_auth.dart';

    main() async {
      var client = http_auth.DigestAuthClient('user', 'passwd');
      var response = client.get('http://httpbin.org/digest-auth/auth/user/passwd');
    }

Automatic detection of the protocol (Basic or Digest):

    import 'package:http_auth/http_auth.dart';

    main() async {
      var client = http_auth.NegotiateAuthClient('user', 'passwd');
      var response = client.get('http://httpbin.org/digest-auth/auth/user/passwd');
    }

Synchronous usage is also possible (see the example).