* Enable gzip compression on the wire This change allows the Pulumi API client to gzip requests sent to the Pulumi service if requested using the 'GzipCompress' http option. This change also sets the Accept-Encoding: gzip header for all requests originating from the CLI, indicating to the service that it is free to gzip responses. The 'readBody' function is used in the API client to read a response's body, regardless of how it is encoded. Finally, this change sets GzipCompress: true on the 'PatchUpdateCheckpoint' API call, since JSON payloads in that call tend to be large and it has become a performance bottleneck. * spelling * CR feedback: 1. Clarify and edit comments 2. Close the gzip.Reader when reading bodies 3. Log the payload size when logging compression ratios |
||
---|---|---|
.. | ||
display | ||
filestate | ||
httpstate | ||
state | ||
apply.go | ||
backend.go | ||
snapshot.go | ||
snapshot_test.go | ||
stack.go | ||
updates.go |