Jakub Roztocil
c2d70e2bb1
Clean up.
2012-07-17 07:01:30 +02:00
Jakub Roztocil
2dba176aa8
Added support for terminal colors under Windows.
...
Tested on Python 2.7 under Windows 7 with PowerShell and cmd.exe.
Closes #36
2012-07-17 04:06:13 +02:00
Jakub Roztocil
f29c458611
Python 3 fixes.
2012-07-17 01:26:21 +02:00
Jakub Roztocil
2d7df0afb4
Fixed AttributeError in Content-Type vendor removal.
2012-07-17 01:11:43 +02:00
Jakub Roztocil
2036337a53
Merge pull request #69 from jokull/master
...
Prettify vendor+json and vendor+xml Content-Type responses
2012-07-16 15:27:50 -07:00
Oleg Churkin
5a82c79fdf
Now non-ascii symbols displayed correctly in the output (not as escape sequences).
2012-07-17 00:08:52 +02:00
JoĢkull SoĢlberg AuĆ°unsson
36de166b28
Simplify vendor extension content-types since they are most likely lexable
2012-07-14 14:27:11 +00:00
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 RoztocĢil
ebb271334b
Corrected line breaks in the output.
2012-03-04 13:03:21 +01:00
Jakub RoztocĢil
b728710760
Factored out CLI parsing.
2012-03-04 10:49:17 +01:00
Jakub RoztocĢ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 RoztocĢil
98e320a1a3
Added error handling.
2012-02-26 16:13:12 +01:00
Jakub RoztocĢil
4059dbc27a
Fixed header formatting.
2012-02-26 01:43:44 +01:00
Jakub RoztocĢil
5653b9c6a0
Added --headers and --body to limit the output.
2012-02-26 01:37:28 +01:00
Jakub RoztocĢil
b966efa17d
Initial commit.
2012-02-25 13:39:38 +01:00