File SystemHTTP & Networking
Common HTTP server usage
This code starts an HTTP server listening on port 3000 . It demonstrates basic routing with common responses and handles POST data from standard forms or as
Bun Redis with Upstash
Upstash is a fully managed Redis database as a service. It works with the Redis® API, so you can connect with Bun's native Redis client.
Write a simple HTTP server
This code starts an HTTP server listening on port 3000 . It responds to every request with a 200 status and the body "Welcome to Bun!" .