mirror of
https://github.com/nim-lang/Nim.git
synced 2026-04-18 21:40:32 +00:00
HttpCode shouldn't require explicit initialisation to prevent breakage.
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user