cli icon indicating copy to clipboard operation
cli copied to clipboard

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

Open chubin opened this issue 6 years ago • 0 comments

(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).

chubin avatar Sep 30 '19 13:09 chubin