Skip to main content
Deno 2 is finally here 🎉️
Learn more

native_http

Current version Current test status PRs are welcome native_http issues native_http stars native_http forks native_http license native_http is maintained Minimum supported Deno version

native_http is a module to provide native Deno HTTP client and server implementations equivalent to those currently provided by the Deno http standard library.

import { serve } from "https://deno.land/x/native_http/mod.ts";

const server = serve(4505);

console.log("Listening on port 4505.");

for await (const requestEvent of server) {
  requestEvent.respondWith(new Response("Hello World\n", { status: 200 }));
}

Documentation

Please refer to the Deno docs.

Examples

Please refer to the examples documentation.

Contributing

Please refer to the contributing guide.


License

native_http is licensed under the MIT License.