Skip to content

application/json and gzip #787

Open
Open

Description

@phink0

When a captured response has Content-Type: application/json and Content-Encoding: gzip it is encoded in Base64 in the simulation file.

Uncompressing this response to normal JSON text in the simulation file would enhance readability and understanding, make editing and versioning easier.

In simulate mode such a response could or should be compressed again to be closer to the actual API.

Activity

  1. JohnFDavenport commented on Mar 1, 2019

    @JohnFDavenport
    Contributor

    Related to #815

  2. added this to the v1.1.a milestone on Mar 1, 2019
  3. removed this from the v1.2 milestone on Jul 3, 2019
  4. GeorgeRadev commented on Jun 9, 2020

    @GeorgeRadev

    Could there be an option for hoverctl export to decompress the gzip content ?

    I agree that decompressing should be out of the proxy functionality,
    and decompression is mostly needed when simulation is going to be edited for creating new simulations.
    Thus, if export provide optional decompressing recordings it will be much easier to edit exported simulations and loading them after that.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions