FLUTTER ECOSYSTEM

marcoesposito1988/http_auth

HTTP 인증(Basic/Digest)용 Dart http 미들웨어

http_auth 프로젝트 이미지
Stars
19
Forks
11
최근 푸시(UTC)
2026. 7. 24.
프로젝트 상태
활성
Marco Esposito GitHub avatar
GITHUB User

Marco Esposito ↗

@ImFusionGmbHMunich공식 웹사이트 ↗
언어Dart

기술 주제

이 저장소가 배포한 패키지

사용 중인 의존성

의존성 목록 5 개

원본 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).