Use gzip for API calls to lower bandwidth and RAM
This commit is contained in:
@@ -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) =
|
||||
|
||||
Reference in New Issue
Block a user