Commit Graph

20 Commits

Author SHA1 Message Date
Jakob Kramer
d89eeb0796 PEP-8 2012-04-28 14:18:59 +02:00
Jakob Kramer
bced559496 use PrettyHttp class; working --headers and --body 2012-04-28 14:16:47 +02:00
Jakob Kramer
4aa86cb438 Use the full capability of HttpLexer 2012-04-26 14:48:38 +02:00
Jakob Kramer
2d7f2c65a2 Use the Pygments HTTP and JSON lexers 2012-04-26 13:05:59 +02:00
Jakub Roztocil
51aa0409e6 Added Python 3 support
Closes #11.
2012-03-15 00:13:11 +01:00
Jakub Roztocil
e2e749b2a6 Improved request formatting. 2012-03-14 22:45:35 +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
ebb271334b Corrected line breaks in the output. 2012-03-04 13:03:21 +01:00
Jakub Roztočil
b728710760 Factored out CLI parsing. 2012-03-04 10:49:17 +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
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
b966efa17d Initial commit. 2012-02-25 13:39:38 +01:00