Commit Graph

44 Commits

Author SHA1 Message Date
Jakub Roztocil
578acacdf3 Added a --verbose / -v flag
When set, the whole request as well as the response is printed. Shortcut for --print=HBhb.
2012-03-14 11:15:21 +01:00
Jakub Roztocil
ed888a2657 Made sure request Host is correct when printing. 2012-03-14 01:12:10 +01:00
Jakub Roztocil
02622a4135 Added the option to print the request
It is now possible to print any combination of the following
request-response bits:

    - Request headers (H)
    - Request body (B)
    - Response headers (h)
    - Response body (b)

The output is controlled by the --print / -p option which
defaults to "hb" (i.e., response headers and response body).

Note that -p was previously shortcut for --prety.

Closes #29.
2012-03-14 00:44:13 +01:00
Jakub Roztocil
31c28807c9 Added better JSON highlighting
A JSON-specific lexer for Pygments by Norman Richards (@orb)
has been added. It attempts to provide more interesting syntax
highlighting which correctly distinguishes between attribute
names and values.

Closes #25.
2012-03-13 21:45:40 +01:00
Praful Mathur
c9eb2255f6 Added proper JSON highlighting 2012-03-05 12:58:21 -05:00
Jakub Roztocil
ce952c9e90 Added support for more 256 color terminals.
Closes #20. Thanks, @laurentb.
2012-03-04 16:40:02 +01:00
Jakub Roztočil
c446d756ab Fixed IOError in setup.py. 2012-03-04 13:47:09 +01:00
Jakub Roztočil
7ca6191902 v0.1.5 2012-03-04 13:33:18 +01:00
Jakub Roztočil
ebb271334b Corrected line breaks in the output. 2012-03-04 13:03:21 +01:00
Jakub Roztočil
6d14097844 Added travis-ci configuration. 2012-03-04 11:31:37 +01:00
Jakub Roztočil
f5d5ec22af Added --version. 2012-03-04 10:49:37 +01:00
Jakub Roztočil
b728710760 Factored out CLI parsing. 2012-03-04 10:49:17 +01:00
Jakub Roztočil
ca8779d879 Merge branch 'main-module-convention' of https://github.com/gandaro/httpie into gandaro-main-module-convention
Renamed httpie.httpie to httpie.__main__ so that one can invoke it via python -m httpie.
2012-03-04 03:13:50 +01:00
Jakub Roztočil
b802f2b960 Added field-name:=raw-json
Closes #14
2012-03-04 02:44:30 +01:00
Jakub Roztočil
00312ead28 Refactored --pretty and added tests.
#16
2012-03-04 01:54:28 +01:00
Jakub Roztocil
d02ac54130 Merge pull request #16 from tictactix/master
Added a way to force pretty printing
2012-03-03 16:17:41 -08:00
Chris Faulkner
dd8faecbf7 Pass allow_redirects to request so --allow-redirects works. 2012-03-03 11:54:53 -08:00
Praful Mathur
58f74fe14a Force pretty printing (ignore last commit; stupid undo mistake) 2012-03-02 17:00:20 -05:00
Praful Mathur
84a0d4a35d Added forcing pretty printing for piping purposes. 2012-03-02 16:54:18 -05:00
Jakob Kramer
d670513c9f use the __main__ submodule convention to make it possible to use python -m httpie 2012-03-02 18:35:33 +01:00
Jakub Roztočil
860a851a4b Fixed a missing line between headers and body. 2012-03-02 09:02:50 +01:00
Jakub Roztočil
9634dca7d8 Fixed a UnicodeError in Python 2.6. 2012-03-02 02:36:21 +01:00
Jakub Roztočil
bb653bf1a9 Added first tests. 2012-03-02 01:42:23 +01:00
Jakub Roztočil
94c605fac1 Added --style
Closes #6. Thanks, @iromli.
2012-03-02 01:39:22 +01:00
Mark Larus
f934f4345e Support for terminals not using 256 color
As documented in issue #8, the default terminal in OS X 10.6 is xterm-color, which does not support Formatter256Terminal
2012-02-29 15:39:56 -05:00
Isman Firmansyah
b752b59d92 remove unnecessary partial call 2012-02-29 21:35:20 +07:00
Isman Firmansyah
553941c98d added support to use other pygments styles, falback to solarized 2012-02-29 02:06:36 +07:00
Jakub Roztočil
1a88ae647e 0.1.4 2012-02-28 18:09:05 +01:00
Jakub Roztočil
0293ba1799 Do not assume UTF-8. 2012-02-28 18:06:21 +01:00
Jakub Roztocil
f90ae113e4 Merge pull request #2 from flashingpumpkin/master
Added Python 2.6 compatibility.
2012-02-28 08:54:59 -08:00
Alen Mujezinovic
6f9ad9e4e1 Revert "Not all web servers return UTF-8 and will crash httpie when decoding the response"
This reverts commit 2f569b901d.
2012-02-28 16:49:53 +00:00
Jakub Roztočil
ecf968388b Fixed __version__ and __doc__ import. Thanks, @FND. 2012-02-28 17:14:31 +01:00
Alen Mujezinovic
2f569b901d Not all web servers return UTF-8 and will crash httpie when decoding the response 2012-02-28 14:01:01 +00:00
Alen Mujezinovic
b567104267 Removed the lists in favour of generators 2012-02-28 13:33:33 +00:00
Jakub Roztočil
71b6b126c0 Fixed setup.py to work without having pygments already installed. Closes #1. 2012-02-28 13:49:58 +01:00
Alen Mujezinovic
f73aaa844f Syntax error fix 2012-02-28 10:51:13 +00:00
Jakub Roztočil
258fc0cd5f Renamed the CLI tool http. 2012-02-27 11:54:41 +01:00
Jakub Roztočil
459c9f1a33 Added Solarized color scheme for Pygments by @gthank. 2012-02-26 16:22:04 +01:00
Jakub Roztočil
98e320a1a3 Added error handling. 2012-02-26 16:13:12 +01:00
Jakub Roztočil
4059dbc27a Fixed header formatting. 2012-02-26 01:43:44 +01:00
Jakub Roztočil
5653b9c6a0 Added --headers and --body to limit the output. 2012-02-26 01:37:28 +01:00
Jakub Roztočil
3f0d621c5a Fixed a typo. 2012-02-25 14:34:41 +01:00
Jakub Roztočil
0577d07316 Fixed a typo. 2012-02-25 14:33:56 +01:00
Jakub Roztočil
b966efa17d Initial commit. 2012-02-25 13:39:38 +01:00