http_auth 1.0.4 copy "http_auth: ^1.0.4" to clipboard
http_auth: ^1.0.4 copied to clipboard

Dart http middleware for HTTP Basic and Digest authentication

example/http_auth_example.dart

// Copyright (c) 2018, Marco Esposito (marcoesposito1988@gmail.com).
// Please see the AUTHORS file for details. All rights reserved.
// Use of this source code is governed by a BSD-style license
// that can be found in the LICENSE file.

import 'package:http_auth/http_auth.dart';

void main() {
  var client = DigestAuthClient('user', 'passwd');

  final url = Uri.parse('http://httpbin.org/digest-auth/auth/user/passwd');

  client.get(url).then((r) => print(r.body));
}
37
likes
130
pub points
98%
popularity

Publisher

unverified uploader

Dart http middleware for HTTP Basic and Digest authentication

Repository (GitHub)
View/report issues

Documentation

API reference

License

BSD-3-Clause (LICENSE)

Dependencies

convert, crypto, http

More

Packages that depend on http_auth