From f35a5c97c5008550198791b4a50a9af76d8a616e Mon Sep 17 00:00:00 2001 From: Gary Sassano <10464497+garysassano@users.noreply.github.com> Date: Mon, 9 Oct 2023 11:16:29 +0200 Subject: [PATCH] chore(sdk): remove http `extern` module (#4469) I noticed the presence of this http `extern` module that isn't imported anywhere, probably because it got replaced by the `http` submodule integrated in the Wing SDK. *By submitting this pull request, I confirm that my contribution is made under the terms of the [Wing Cloud Contribution License](https://github.com/winglang/wing/blob/main/CONTRIBUTION_LICENSE.md)*. --- examples/tests/sdk_tests/external/http.js | 11 ----------- 1 file changed, 11 deletions(-) delete mode 100644 examples/tests/sdk_tests/external/http.js diff --git a/examples/tests/sdk_tests/external/http.js b/examples/tests/sdk_tests/external/http.js deleted file mode 100644 index 4c88eb2bebe..00000000000 --- a/examples/tests/sdk_tests/external/http.js +++ /dev/null @@ -1,11 +0,0 @@ -exports.http = async function (url, options = {}) { - const res = await fetch(url.toString(), options); - return { - status: res.status, - headers: [...res.headers.entries()].map(([key, value]) => ({ - key, - value, - })), - body: await res.text(), - }; -};