Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature request: Magic mode (or busybox, or httpbox mode) #806

Open
chubin opened this issue Sep 30, 2019 · 0 comments
Open

Feature request: Magic mode (or busybox, or httpbox mode) #806

chubin opened this issue Sep 30, 2019 · 0 comments
Labels
enhancement New feature or enhancement needs product design We like the idea, but we want to explore the problem deeper, and consider the solution holistically

Comments

@chubin
Copy link

chubin commented Sep 30, 2019

(from email discussion with Jakub)

  1. Magic mode (or busybox, or httpbox mode)

If would be greate if it would be possible to add a new mode
to HTTPie, that works like this:

if the programm was called not using its main main (http),
but using some other name (because the name was hardlinked
or symlinked to http), that would mean that HTTPie should
access the service with that name, and should interpret
its command line options as URL Parameters and pass them to the
service in the URL:

    ln -s $(which http) /usr/bin/wttr.in
    wttr.in Berlin          => (means: http -t wttr.in/Berlin
    wttr.in -0Q Berlin      => (means: http -t wttr.in/Berlin?Q0)

It would allow (using the new framework, that we are currently working on)
expose any service via HTTP/HTTPS and convert HTTPie in a universal
HTTP-based Busybox (httpbox).

@BoboTiG BoboTiG added the enhancement New feature or enhancement label Sep 22, 2021
@isidentical isidentical added the needs product design We like the idea, but we want to explore the problem deeper, and consider the solution holistically label Dec 28, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or enhancement needs product design We like the idea, but we want to explore the problem deeper, and consider the solution holistically
3 participants