aia_chaser_http 0.1.0 copy "aia_chaser_http: ^0.1.0" to clipboard
aia_chaser_http: ^0.1.0 copied to clipboard

package:http client adapter for aia_chaser, enabling scoped AIA intermediate certificate chasing and transparent retry-once.

example/example.dart

import 'package:aia_chaser/aia_chaser.dart';
import 'package:aia_chaser_http/aia_chaser_http.dart';
import 'package:http/http.dart' as http;

void main() async {
  // 1. Initialize AIA Chaser with hosts requiring chain completion
  await AiaChaser.initialize(
    const AiaConfig(
      hosts: {
        'register.acrex.in': HostPolicy.chase(retryOnce: true),
      },
      prewarm: PrewarmMode.background,
    ),
  );

  // 2. Wrap standard http.Client with AiaHttpClient
  final client = AiaHttpClient(http.Client());

  // 3. Make requests - transparently retries once if intermediate CA needs to be chased
  try {
    final response = await client.get(
      Uri.parse('https://register.acrex.in/ACREXService.svc/GetSliderList'),
    );
    print('HTTP Status: ${response.statusCode}');
    print('Response: ${response.body}');
  } finally {
    client.close();
  }
}
0
likes
160
points
0
downloads

Documentation

API reference

Publisher

verified publisheryadneshteli.me

Weekly Downloads

package:http client adapter for aia_chaser, enabling scoped AIA intermediate certificate chasing and transparent retry-once.

Homepage
Repository (GitHub)
View/report issues

License

BSD-3-Clause (license)

Dependencies

aia_chaser, http

More

Packages that depend on aia_chaser_http