Use gzip for API calls to lower bandwidth and RAM

This commit is contained in:
Zed
2021-12-26 06:49:27 +01:00
parent 5e49e94bf1
commit 3da6c50cb8
4 changed files with 9 additions and 4 deletions

View File

@@ -7,7 +7,8 @@ type
var maxConns {.threadvar.}: int
let keepAlive* = newHttpHeaders({
"Connection": "Keep-Alive"
"connection": "Keep-Alive",
"accept-encoding": "gzip"
})
proc setMaxHttpConns*(n: int) =