Fastify example #1188
-
Hi, the Fastify example seems interesting, but I'm somewhat puzzled how it should be used, since it spawns 2 servers and then fetches like this: Or is it 3 different servers, one starting the request (maybe the browser so to say), then it hits the server w/ fastify, which is only a proxy for the server spawning the raw http server? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
The later of your explanations is the example I was going for. Essentially, request comes into Server 1 from a Browser. Server 1, using undici, then makes a subsequent request to Server 2. The response from Server 2 is then pipelined back to the Browser directly through the Pipeline streams. |
Beta Was this translation helpful? Give feedback.
The later of your explanations is the example I was going for. Essentially, request comes into Server 1 from a Browser. Server 1, using undici, then makes a subsequent request to Server 2. The response from Server 2 is then pipelined back to the Browser directly through the Pipeline streams.