This commit is contained in:
Jakub Roztocil 2021-10-06 19:31:43 +02:00
parent 7e0bed4e54
commit ef4fa20ceb

View File

@ -95,7 +95,7 @@ class TransportPlugin(BasePlugin):
class ConverterPlugin(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: See httpie-msgpack for an example converter plugin:
@ -108,7 +108,9 @@ class ConverterPlugin(BasePlugin):
def convert(self, body: bytes) -> Tuple[str, str]: 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', '{}') ('application/json', '{}')
""" """