HttpCode shouldn't require explicit initialisation to prevent breakage.

This commit is contained in:
Dominik Picheta
2016-09-19 21:53:07 +02:00
parent 31bdf45ffe
commit 09651bec5e

View File

@@ -18,7 +18,9 @@ type
HttpHeaderValues* = distinct seq[string]
HttpCode* = distinct range[100 .. 599]
# The range starts at '0' so that we don't have to explicitly initialise
# it. See: http://irclogs.nim-lang.org/19-09-2016.html#19:48:27 for context.
HttpCode* = distinct range[0 .. 599]
HttpVersion* = enum
HttpVer11,