-
Notifications
You must be signed in to change notification settings - Fork 638
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
feature(node/http): Export STATUS_CODES and METHODS #1357
feature(node/http): Export STATUS_CODES and METHODS #1357
Conversation
This will be fixed once denoland/deno#12348 lands |
The problem persist |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@UltiRequiem Thanks! Left one comment
node/http.ts
Outdated
@@ -1 +1,42 @@ | |||
throw new Error('"http" is not yet implemented.'); | |||
import { Status as STATUS_CODES } from "../http/mod.ts"; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let's import from ../http/http_status.ts
to avoid introducing the entire http
dependency here
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done!
Thank you @bartlomieju for resolving a lot of CI failures in std! |
References:
https://nodejs.org/api/http.html#http_http_status_codes
https://nodejs.org/api/http.html#http_http_methods
I have run deno fmt and deno lint