You've already forked httpie-cli
mirror of
https://github.com/httpie/cli.git
synced 2025-08-10 22:42:05 +02:00
Add more types and docs for plugins API II.
This commit is contained in:
@@ -106,9 +106,9 @@ class ConverterPlugin(BasePlugin):
|
||||
def __init__(self, mime: str):
|
||||
self.mime = mime
|
||||
|
||||
def convert(self, content_bytes: bytes) -> Tuple[str, Union[str, bytes]]:
|
||||
def convert(self, body: bytes) -> Tuple[str, str]:
|
||||
"""
|
||||
Convert content as needed and return a tuple containing the new Content-Type and content, e.g.:
|
||||
Convert content bytes to a string and return a tuple containing the new Content-Type and content, e.g.:
|
||||
('application/json', '{}')
|
||||
|
||||
"""
|
||||
|
Reference in New Issue
Block a user