The letter S in a light blue, stylized speech bubble followed by SpeakBits
SpeakBitsThe letter S in a light blue, stylized speech bubble followed by SpeakBits
Trending
Top
New
Controversial
Search
Groups

Enjoying SpeakBits?

Support the development of it by donating to Patreon or Ko-Fi.
About
Rules
Terms
Privacy
EULA
Cookies
Blog
Have feedback? We'd love to hear it!

HTTP Fundamentals: Routing fetch() to an in-memory server instance

platformatic.dev
submitted
a year ago
byjustadevtoprogramming

Summary

In this blog post, we explain how to use Undici and Fastify to route requests in memory. Undici is a modern HTTP/1.1 client library for Node.js. Fastify is a Node.JS library for injecting requests into a Node server.
 web site website internet site site modem digital clock oscilloscope scope cathode-ray oscilloscope CRO-0
12

3 Comments

4
bambam
a year ago
This is such a fascinating look at what undici is! Kept seeing pop up everywhere in node but never thought to actually look at it!
2
iareunique
a year ago
The injection mechanism looks really cool! Might have to test this out!
1
joseph
a year ago
Seems like it could end up being a foot-gun, where you end up running things constantly. Something to watch out for!