Skip to content

Conversation

littledivy
Copy link
Member

@littledivy littledivy commented Apr 7, 2025

Fixes #27376
Fixes #23373

Example usage:

const client = Deno.createHttpClient({
  localAddress: "127.0.0.2",
});
const response = await fetch("http://localhost:4545/local_addr", {
  client,
});

@@ -1228,6 +1228,21 @@ Deno.test(
},
);

Deno.test(
{ permissions: { net: true }, ignore: Deno.build.os !== "linux" },
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

only works on linux?

Copy link
Member

@ry ry left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM - probably this should wait for 2.3

@littledivy littledivy added this to the 2.3.0 milestone Apr 8, 2025
@sergeysolovev
Copy link

amazing!

@mastrayer
Copy link

please release it as soon as possible 😭😭

@littledivy littledivy merged commit 6f4472c into denoland:main Apr 25, 2025
18 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

feat: Add local interface/network card selection support for Deno.createHttpClient Local ip address and network interface support for fetch
4 participants