pulumi/pkg/backend
Sean Gillespie e70c5d385e
Enable gzip compression on the wire (#2074)
* 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
2018-10-23 14:11:40 -07:00
..
display Add an option to suppress displaying stack outputs (#2029) 2018-10-06 14:13:02 -07:00
filestate Fix a panic on shutdown (#2050) 2018-10-12 10:29:47 -07:00
httpstate Enable gzip compression on the wire (#2074) 2018-10-23 14:11:40 -07:00
state Add license headers 2018-05-22 15:02:47 -07:00
apply.go Make a smattering of CLI UX improvements 2018-09-24 08:43:46 -07:00
backend.go Default an update's message to the Git commit title (#2009) 2018-10-02 10:49:41 -07:00
snapshot.go Check for input diffs when eliding same steps. (#1905) 2018-09-07 15:10:02 -07:00
snapshot_test.go Elide unnecessary checkpoint writes. (#1798) 2018-08-20 14:14:50 -07:00
stack.go Implement preview-then-update for local stacks 2018-09-05 07:33:18 -07:00
updates.go Add git head ref name to update metadata (#2033) 2018-10-08 11:13:21 -07:00