From ef4fa20ceb0044aa7820bd9d3f222fefc9d8fca2 Mon Sep 17 00:00:00 2001 From: Jakub Roztocil Date: Wed, 6 Oct 2021 19:31:43 +0200 Subject: [PATCH] Tweak --- httpie/plugins/base.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/httpie/plugins/base.py b/httpie/plugins/base.py index 408566df..f446346c 100644 --- a/httpie/plugins/base.py +++ b/httpie/plugins/base.py @@ -95,7 +95,7 @@ class TransportPlugin(BasePlugin): class ConverterPlugin(BasePlugin): """ - Possibly converts response data for prettified terminal display. + Possibly converts binary response data for prettified terminal display. See httpie-msgpack for an example converter plugin: @@ -108,7 +108,9 @@ class ConverterPlugin(BasePlugin): def convert(self, body: bytes) -> Tuple[str, str]: """ - Convert content bytes to a string and return a tuple containing the new Content-Type and content, e.g.: + Convert a binary body to a textual representation for the terminal + and return a tuple containing the new Content-Type and content, e.g.: + ('application/json', '{}') """