Skip to content

Commit

Permalink
feature(node/http): Export STATUS_CODES and METHODS (#1357)
Browse files Browse the repository at this point in the history
  • Loading branch information
UltiRequiem authored Oct 8, 2021
1 parent bf53725 commit 451e28f
Showing 1 changed file with 42 additions and 1 deletion.
43 changes: 42 additions & 1 deletion node/http.ts
Original file line number Diff line number Diff line change
@@ -1 +1,42 @@
throw new Error('"http" is not yet implemented.');
import { Status as STATUS_CODES } from "../http/http_status.ts";

const METHODS = [
"ACL",
"BIND",
"CHECKOUT",
"CONNECT",
"COPY",
"DELETE",
"GET",
"HEAD",
"LINK",
"LOCK",
"M-SEARCH",
"MERGE",
"MKACTIVITY",
"MKCALENDAR",
"MKCOL",
"MOVE",
"NOTIFY",
"OPTIONS",
"PATCH",
"POST",
"PROPFIND",
"PROPPATCH",
"PURGE",
"PUT",
"REBIND",
"REPORT",
"SEARCH",
"SOURCE",
"SUBSCRIBE",
"TRACE",
"UNBIND",
"UNLINK",
"UNLOCK",
"UNSUBSCRIBE",
];

export { METHODS, STATUS_CODES };

export default { STATUS_CODES, METHODS };

0 comments on commit 451e28f

Please sign in to comment.