Add $ for HttpHeaders.
This commit is contained in:
parent
1a0032eb68
commit
bfae7bfe83
1 changed files with 3 additions and 0 deletions
|
|
@ -113,6 +113,9 @@ proc newHttpHeaders*(keyValuePairs:
|
||||||
new result
|
new result
|
||||||
result.table = newTable[string, seq[string]](pairs)
|
result.table = newTable[string, seq[string]](pairs)
|
||||||
|
|
||||||
|
proc `$`*(headers: HttpHeaders): string =
|
||||||
|
return $headers.table
|
||||||
|
|
||||||
proc clear*(headers: HttpHeaders) =
|
proc clear*(headers: HttpHeaders) =
|
||||||
headers.table.clear()
|
headers.table.clear()
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue