Skip to content

Commit

Permalink
feat: add put function in httpClient
Browse files Browse the repository at this point in the history
  • Loading branch information
wile44 committed Sep 9, 2024
1 parent a1cc3d1 commit 816e290
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 2 deletions.
15 changes: 15 additions & 0 deletions lib/modules/engine/http/http.module.dart
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,21 @@ class HttpClientModule {
dioTestClient: dioTestClient,
);

Future<HttpResponse> put(String resourceUrl, dynamic data,
{String? baseUrl,
String? username,
String? password,
Dio? dioTestClient}) =>
HttpClient.put(
resourceUrl,
data,
baseUrl: baseUrl,
username: username,
password: password,
database: database,
dioTestClient: dioTestClient,
);

Future<HttpResponse> delete(String resourceUrl, String id,
{String? baseUrl,
String? username,
Expand Down
4 changes: 2 additions & 2 deletions pubspec.lock
Original file line number Diff line number Diff line change
Expand Up @@ -766,10 +766,10 @@ packages:
dependency: transitive
description:
name: vm_service
sha256: f652077d0bdf60abe4c1f6377448e8655008eef28f128bc023f7b5e8dfeb48fc
sha256: "5c5f338a667b4c644744b661f309fb8080bb94b18a7e91ef1dbd343bed00ed6d"
url: "https://pub.dev"
source: hosted
version: "14.2.4"
version: "14.2.5"
watcher:
dependency: transitive
description:
Expand Down

0 comments on commit 816e290

Please sign in to comment.