Berker Peksag
6db35f66a3
Make mesg_class a class attribute.
2015-01-30 22:14:34 +02:00
benoitc
403acab3b1
update changelog
2014-06-28 17:59:34 +02:00
Adnane Belmadiaf
20cd49595a
PEP8 fixes
2012-12-24 09:53:03 +01:00
benoitc
8d453fb341
all tests pass under python 3
2012-10-24 22:07:35 +02:00
Konstantin Kapustin
70534acde8
Implantation proxy protocol
2012-09-27 19:14:40 +02:00
benoitc
6766c14793
pass config to the http parser.
2012-02-20 07:02:55 +01:00
benoitc
f168a21dae
fix whitespaces
2012-02-19 11:27:46 +01:00
benoitc
e1647837d4
some errors spotted by pyflakes
2010-06-17 00:43:48 +02:00
benoitc
d5b76ac651
socket.from_fd return a _socket.socket object instead of socket.socket
...
(at least on py26). Instead of testing type of instance, just test if
the source has a "recv" method. Fix bug in usr2 with new parser.
2010-06-16 11:30:36 +02:00
benoitc
516adafcbe
fix some errors & add headers. unitests still broken
2010-06-03 16:11:17 -04:00
Paul J. Davis
8ddf3e856e
Fix up a couple minor bugs.
2010-06-03 16:11:16 -04:00
Paul J. Davis
0d32ab1356
Initial steps for importing simplehttp.
2010-06-03 16:11:16 -04:00
Paul J. Davis
f02cbc10ed
Playing with simplehttp.
2010-06-03 16:10:27 -04:00
benoitc
4873b41b33
use cstringio
2010-03-08 12:14:47 +01:00
benoitc
c785be0780
new parser using StringIO, faster than concatenate strings. Lot of fixes
...
in TeeInput.
2010-03-06 20:47:39 +01:00
benoitc
83804e2421
follow spec
2010-03-05 01:11:00 +01:00
benoitc
77ea9ea78a
recv_info seems slower that just concatening string. let's create a
...
branch to test it.
2010-03-04 18:48:39 +01:00
benoitc
176ad162b1
fix header parsing. spotted by MattCampbell on irc. thx
2010-03-03 16:23:32 +01:00
benoitc
0629f011e8
r should be here anyway...
2010-02-28 22:55:37 +01:00
benoitc
c2f12a4977
should fix _ensure_length in tee. while I'm here fix chunked response.
2010-02-28 22:46:35 +01:00
benoitc
d92364af71
new read_partial function. We also now use buffer in parser.
2010-02-28 22:46:35 +01:00
benoitc
d1011ff301
fix indent in parser.body_eof
2010-02-28 00:59:03 +01:00
benoitc
2b556bb830
make it more compliant with the spec
2010-02-27 15:21:36 +01:00
benoitc
d91939f110
fix should_close. not really useful in gunicorn case but then we are in
...
sync with restkit
2010-02-26 23:26:15 +01:00
benoitc
b6693a81aa
fix chunked encoding.
2010-02-26 04:56:46 +01:00
benoitc
3a2673d52e
don't return headers here.
2010-02-24 18:57:12 +01:00
Paul J. Davis
588b48b2cd
Comma separate repeated request headers.
...
RFC 2616 says that only headers that are allowed to have comma separated
values are acceptable for repetition. Though it doesn't specify an error
condition for that situation. I reckon the cleanest way would be to list
the headers that are acceptable for repetition, and return a 400 Bad
Request.
2010-02-10 10:55:09 -05:00
Paul J. Davis
9e717b8f9c
Refactoring the worker loop.
...
Accidentally got a bit carried away.
2010-01-31 17:45:26 -05:00
Benoit Chesneau
99bb5b0de4
fix other issues spotted by pyflakes.
2010-01-21 22:40:53 +01:00
Benoit Chesneau
ec644bdf90
rename http_parser.py to parser.py we are already in http module
2010-01-21 01:13:12 +01:00