An HTTP REPL for Emacs
Emacs Lisp
Switch branches/tags
Nothing to show
Pull request Compare This branch is 6 commits behind gregsexton:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
test
.gitignore
Cask
README.md
httprepl.el

README.md

README

httprepl.el allows you to interactively make HTTP requests at a REPL-like UI within Emacs.

Installation

Firstly, httprepl requires the following dependencies:

You should install these anyway, they make working with elisp much more comfortable.

Drop this package somewhere on your load-path or

(add-to-list 'load-path (expand-file-name "/path/to/httprepl.el/"))

Then

(require 'httprepl)

To get started, run M-x httprepl

Check out M-x customize-group httprepl for configuration.

This has been tested on Emacs 24.3 on Linux and Mac OS X.

Features

  • Make HTTP requests using Emacs built in url package. This should work for environments without curl.
  • Make HTTP requests using curl.
  • Supports GET, POST, PUT, DELETE, OPTIONS, HEAD, TRACE and CONNECT requests.
  • Supports adding extra headers.
  • Supports adding inline request bodies.
  • Supports opening responses in a new buffer using C-c C-c. Based on the content-type of the response a sequence of functions can be applied to this buffer. This allows for syntax-highlighting, pretty-printing, whatever really.

Screenshots

The screenshot shows a sample REPL session. A PUT request with an extra header and a body is executed. The response is then opened in a buffer. As you can see, the content type is detected and the buffer is put in to js-mode with the response headers commented out.

httprepl

License

MIT license