Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/mblayman/httpony
:horse: An HTTP request listener and pretty printer
https://github.com/mblayman/httpony
http httpie pretty-print
Last synced: 3 months ago
JSON representation
:horse: An HTTP request listener and pretty printer
- Host: GitHub
- URL: https://github.com/mblayman/httpony
- Owner: mblayman
- License: bsd-2-clause
- Created: 2015-08-30T17:34:15.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2019-05-07T21:06:21.000Z (over 5 years ago)
- Last Synced: 2024-10-11T11:25:36.073Z (4 months ago)
- Topics: http, httpie, pretty-print
- Language: Python
- Homepage:
- Size: 31.3 KB
- Stars: 55
- Watchers: 6
- Forks: 6
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# HTTPony
HTTPony (pronounced aych-tee-tee-pony) is a simple HTTP server
that pretty prints HTTP requests to a terminal.
It is a useful aide for developing clients that send HTTP requests.
HTTPony acts as a sink for a client
so that a developer can understand what the client is sending.For example, this HTTPie request:
```bash
$ http :8000/pony
HTTP/1.0 200 OK
Content-Length: 0
Content-Type: text/plain; charset=utf-8
Date: Mon, 31 Aug 2015 03:22:38 GMT
Server: HTTPony/0.1
```Shows in HTTPony as:
```bash
$ httpony
Making all your dreams for a pony come true on http://localhost:8000.
Press Ctrl+C to quit.GET /pony HTTP/1.1
Accept: */*
Accept-Encoding: gzip, deflate
Connection: keep-alive
Host: localhost:8000
User-Agent: HTTPie/0.9.2
```Astute readers will point out that HTTPie can show request output with `-v`,
but HTTPony will output for any client that talks HTTP.
Many libraries do not quickly show their request output.To get started:
```bash
$ pip install httpony
```This project is heavily indebted to [HTTPie][pie].
Thanks for making a great alternative to cURL.[pie]: http://httpie.org/