0.1.0
Native Deno HTTP client and server implementations
Repository
Current version released
3 years ago
Dependencies
std
Versions
native_http
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_server
is licensed under the MIT License.