mirror of
https://github.com/httpie/cli.git
synced 2025-01-08 14:49:41 +01:00
Tweak
This commit is contained in:
parent
7e0bed4e54
commit
ef4fa20ceb
@ -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', '{}')
|
||||
|
||||
"""
|
||||
|
Loading…
Reference in New Issue
Block a user