mirror of
https://github.com/denoland/deno.git
synced 2025-12-23 08:48:24 +00:00
This commit adds support for using Unix socket proxies in `fetch` API.
This is facilitated by passing an appropriate `Deno.HttpClient` instance
to the `fetch` API:
```
const client = Deno.createHttpClient({
proxy: {
transport: "unix",
path: "/path/to/unix.sock",
},
});
await fetch("http://localhost/ping", { client });
```
Closes https://github.com/denoland/deno/issues/8821
---------
Co-authored-by: Bartek Iwańczuk <biwanczuk@gmail.com>
11 lines
257 B
Docker
11 lines
257 B
Docker
FROM mcr.microsoft.com/devcontainers/rust:1
|
|
|
|
# Install cmake
|
|
RUN apt-get update \
|
|
&& apt-get install -y cmake clang \
|
|
&& rm -rf /var/lib/apt/lists/*
|
|
|
|
# Install Deno
|
|
ENV DENO_INSTALL=/usr/local
|
|
RUN curl -fsSL https://deno.land/x/install/install.sh | sh
|
|
|