Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docs: use Deno.serve #19805

Merged
merged 2 commits into from
Jul 13, 2023
Merged

docs: use Deno.serve #19805

merged 2 commits into from
Jul 13, 2023

Conversation

idranme
Copy link
Contributor

@idranme idranme commented Jul 12, 2023

No description provided.

@CLAassistant
Copy link

CLAassistant commented Jul 12, 2023

CLA assistant check
All committers have signed the CLA.

Copy link
Contributor

@lino-levan lino-levan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. One minor nit.

Copy link
Member

@crowlKats crowlKats left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thanks

import { serve } from "https://deno.land/[email protected]/http/server.ts";

serve((_req) => new Response("Hello, World!"));
Deno.serve((_req) => new Response("Hello, World!"));
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do we want to keep _req here?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yes; it at least gives a general idea of what the first & most commonly used argument is without having to be specific

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Makes sense. I thought that might be it.

@crowlKats crowlKats merged commit c5ddb5f into denoland:main Jul 13, 2023
10 checks passed
@idranme idranme deleted the patch-1 branch July 13, 2023 02:35
bartlomieju pushed a commit that referenced this pull request Jul 19, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants