Skip to content
This repository was archived by the owner on Feb 10, 2025. It is now read-only.
This repository was archived by the owner on Feb 10, 2025. It is now read-only.

Provide a printable HTTP request body for easy logging #1073

Open
@lauraluiz

Description

@lauraluiz

The HttpRequestBody is an interface without any method so we have to rely on the toString method to print the internal fields, which can generate undesirable noise:

io.sphere.sdk.http.StringHttpRequestBody@542dcb08[body=facet=variants.categories.id&limit=24&offset=0&staged=false]

Can we maybe provide a method in the interface that provides a printable body? In the case of the FileHttpRequestBody I would simply print that the output is too big to be printed.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions