File SystemHTTP & Networking
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!" .
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
Send an HTTP request using fetch
Bun implements the Web-standard fetch API for sending HTTP requests. To send a GET request to a URL: