Skip to content

Commit

Permalink
use http_retry
Browse files Browse the repository at this point in the history
  • Loading branch information
hoc081098 committed Oct 27, 2024
1 parent 5c4525e commit e08f4f6
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ Simple and powerful HTTP client for Flutter and Dart application.
import 'dart:io';
import 'package:http/http.dart' as http;
import 'package:http/retry.dart' as httpRetry;
import 'package:http/retry.dart' as http_retry;
import 'package:http_client_hoc081098/http_client_hoc081098.dart';
import 'user.dart';
Expand All @@ -24,7 +24,7 @@ void main() async {
),
);
final innerClient = httpRetry.RetryClient(
final innerClient = http_retry.RetryClient(
http.Client(),
retries: 3,
when: (response) {
Expand Down
4 changes: 2 additions & 2 deletions example/lib/http_client_hoc081098_example.dart
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import 'dart:io';

import 'package:http/http.dart' as http;
import 'package:http/retry.dart' as httpRetry;
import 'package:http/retry.dart' as http_retry;
import 'package:http_client_hoc081098/http_client_hoc081098.dart';

import 'user.dart';
Expand All @@ -16,7 +16,7 @@ void main() async {
),
);

final innerClient = httpRetry.RetryClient(
final innerClient = http_retry.RetryClient(
http.Client(),
retries: 3,
when: (response) {
Expand Down

0 comments on commit e08f4f6

Please sign in to comment.