This repository was archived by the owner on Sep 15, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 5 files changed +21
-2
lines changed
Expand file tree Collapse file tree 5 files changed +21
-2
lines changed Original file line number Diff line number Diff line change 1+ ## 3.6.0
2+
3+ * Uses ` fetch ` based JS API to handle HTTP request in Flutter Web instead of default implementation from ` http ` packages.
4+
15## 3.5.2
26
37* ` TwitterCardPropertyParser.legacyDomain ` 's default value becomes ` false ` and marked as deprecated.
Original file line number Diff line number Diff line change @@ -9,6 +9,9 @@ import '../disguise_ua/disguise_ua.dart';
99import '../exception/content_type_mismatched.dart' ;
1010import '../fetch/fetch.dart' show MetaFetch;
1111
12+ import 'client_provider_normal.dart'
13+ if (dart.library.js_interop) 'client_provider_web.dart' ;
14+
1215part 'mock_client.dart' ;
1316
1417/// [Client] implementation for OgHref packages.
@@ -23,7 +26,7 @@ final class OgHrefClient extends BaseClient {
2326 /// Allow redirection if necessary.
2427 final bool redirect;
2528
26- final Client _c = Client ();
29+ final Client _c = initializeClient ();
2730
2831 /// Current user agent preference of following requests.
2932 static String _userAgent = DEFAULT_USER_AGENT_STRING ;
Original file line number Diff line number Diff line change 1+ import 'package:http/http.dart' show Client;
2+ import 'package:meta/meta.dart' ;
3+
4+ @internal
5+ Client initializeClient () => Client ();
Original file line number Diff line number Diff line change 1+ import 'package:fetch_client/fetch_client.dart' ;
2+ import 'package:http/http.dart' show Client;
3+ import 'package:meta/meta.dart' ;
4+
5+ @internal
6+ Client initializeClient () => FetchClient (mode: RequestMode .cors);
Original file line number Diff line number Diff line change 11name : oghref_model
22description : Object standarized definition with parser interface for constructing rich information of given URL among various metadata protocols.
3- version : 3.5.2
3+ version : 3.6.0
44repository : https://github.com/rk0cc/oghref/tree/main/model
55issue_tracker : https://github.com/rk0cc/oghref/issues
66funding :
@@ -18,6 +18,7 @@ dependencies:
1818 mime_dart : ^3.0.0
1919 path : ^1.8.3
2020 web : ^0.5.1
21+ fetch_client : ^1.1.2
2122dev_dependencies :
2223 lints : ^4.0.0
2324 test : ^1.24.8
You can’t perform that action at this time.
0 commit comments