Created
April 20, 2026 09:40
-
-
Save towc/49b174191cdf960d783808f51ca23706 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| from httpie.core import main | |
| from httpie.context import Environment | |
| import io | |
| env = Environment( | |
| stdin=io.BytesIO(), # --ignore-stdin probably doesn't work unless from a new process, but maybe we can override it directly? | |
| stdout=io.BytesIO(), | |
| stderr=io.BytesIO(), | |
| ) | |
| main(args=['http', 'GET', 'https://httpbin.org/get'], env=env) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment