Add $ for HttpHeaders.

This commit is contained in:
Dominik Picheta 2017-10-20 18:24:17 +01:00
commit bfae7bfe83

View file

@ -113,6 +113,9 @@ proc newHttpHeaders*(keyValuePairs:
new result
result.table = newTable[string, seq[string]](pairs)
proc `$`*(headers: HttpHeaders): string =
return $headers.table
proc clear*(headers: HttpHeaders) =
headers.table.clear()