mirror of
https://github.com/nim-lang/Nim.git
synced 2026-02-15 15:44:14 +00:00
Add $ for HttpHeaders.
This commit is contained in:
@@ -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()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user