Add $ for HttpHeaders.

This commit is contained in:
Dominik Picheta
2017-10-20 18:24:17 +01:00
parent 1a0032eb68
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()