Skip to content

Commit

Permalink
add http handler snippet
Browse files Browse the repository at this point in the history
  • Loading branch information
icyleaf committed Dec 7, 2018
1 parent 482271b commit 1c3e511
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions snippets/crystal.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,19 @@
],
"description": "HTTP Server example with error, logs and static handler."
},
"HTTP handler": {
"prefix": "http handler",
"body": [
"class ${1:HTTPHandler}",
"\tinclude HTTP::Handler",
"",
"\tdef call(context)",
"\t\t$0",
"\tend",
"end"
],
"description": "HTTP Handler example."
},
"Exception block": {
"prefix": "begin",
"body": [
Expand Down

0 comments on commit 1c3e511

Please sign in to comment.