1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-11-26 16:09:27 -05:00
This commit is contained in:
迷渡 2020-04-28 21:05:14 +08:00 committed by GitHub
parent 2cb875bcfb
commit 5a03e42117
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -267,7 +267,7 @@ export function serve(addr: string | HTTPOptions): Server {
*
* const body = "Hello World\n";
* const options = { port: 8000 };
* listenAndServeTLS(options, (req) => {
* listenAndServe(options, (req) => {
* req.respond({ body });
* });
*