HttpAuthenticationChallenge constructor
Implementation
HttpAuthenticationChallenge({
this.error,
this.failureResponse,
@Deprecated('Use error instead') this.iosError,
@Deprecated('Use failureResponse instead') this.iosFailureResponse,
required this.previousFailureCount,
this.proposedCredential,
required URLProtectionSpace protectionSpace,
}) : super(protectionSpace: protectionSpace) {
error = error ?? iosError;
failureResponse =
failureResponse ?? URLResponse.fromMap(iosFailureResponse?.toMap());
}