Skip to content

Give feedback about unprocessed one shot and duplex bodies #570

@MiSikora

Description

@MiSikora

⚠️ Is your feature request related to a problem? Please describe

#544 Introduced skipping duplex and one-shot bodies. However, when such bodies are skipped by Chucker it displays (body is empty) instead of appropriate information.

Additionally, the user sees -1B as the size of the request payload.

💡 Describe the solution you'd like

Change isRequestBodyEncoded and isResponseBodyEncoded properties to enums that indicates what happened to bodies.

enum class BodyType {
  Decoded, Encoded, Empty, OneShot, Duplex
}

📊 Describe alternatives you've considered

Just edit the message (body is empty) to something else and display - as the request body size.

📄 Additional context

Let's discuss which solution should be applied. I opt for the enum as it should be more flexible for future extensions.

🙋 Do you want to develop this feature yourself?

  • Yes
  • No

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or improvement to the library

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions