Skip to content

Conversation

losfair
Copy link
Member

@losfair losfair commented Jun 10, 2025

This commit adds support for using vsock transport in fetch API on Linux and macOS.

Similar to #29154, a vsock transport can be specified in the proxy field when calling Deno.createHttpClient.

const client = Deno.createHttpClient({
  proxy: {
    transport: "vsock",
    cid: 2,
    port: 80,
  },
});

await fetch("http://localhost/ping", { client });

@bartlomieju bartlomieju merged commit 882d2ed into denoland:main Jun 11, 2025
18 checks passed
@lucacasonato
Copy link
Member

This is missing a test that actually demonstrates a fetch happening over vsock - can you add that?

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.

3 participants