HttpCode shouldn't require explicit initialisation to prevent breakage.
This commit is contained in:
parent
31bdf45ffe
commit
09651bec5e
1 changed files with 3 additions and 1 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue