Skip to content

Commit

Permalink
fetchpost: more detail re http2 and --compress option
Browse files Browse the repository at this point in the history
[skip ci]
  • Loading branch information
jqnatividad committed Jan 23, 2023
1 parent 39e9574 commit 082848f
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions src/cmd/fetchpost.rs
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,15 @@ QSV_FP_REDIS_TTL_REFRESH respectively to change default Redis settings.
Supports brotli, gzip and deflate automatic decompression for improved throughput and
performance, preferring brotli over gzip over deflate.
Automatically upgrades its connection to HTTP/2 as well if the server supports it.
(see https://www.cloudflare.com/learning/performance/http2-vs-http1.1/)
Gzip compression of requests bodies is supported with the --compress flag. Note that
public APIs typically do not support gzip compression of request bodies because of the
"zip bomb" vulnerability. This option should only be used with private APIs where this
is not a concern.
Automatically upgrades its connection to HTTP/2 with adaptive flow control as well
if the server supports it.
See https://www.cloudflare.com/learning/performance/http2-vs-http1.1/ and
https://medium.com/coderscorner/http-2-flow-control-77e54f7fd518 for more info.
EXAMPLES:
Expand Down

0 comments on commit 082848f

Please sign in to comment.