Ryan Dahl
d827cb368c
Allow quotes in URI
...
IE6 apparently sends such requests... Reported by Michael Carter.
15 years ago
Ryan Dahl
693e755c66
Add link to Lua binding
15 years ago
Ryan Dahl
91e6e6a4a8
Add link to yakischloba's ruby binding
15 years ago
Ryan
dbbc73c16f
API Change: Return void from http_parser_execute().
15 years ago
Ryan
65c61e6eb8
Move callback return value checking into macro
15 years ago
Ryan
efd801f410
Bug Fix: Connection:close with missing Content-Length.
...
The test and bug report are from tomika.
15 years ago
Ryan
f3214f9764
Move transfer encoding into flags bitfield.
16 years ago
Ryan
e65dcfbcf2
Use bit flags
16 years ago
Ryan
004aff9001
API Change: Demand that EOFs are passed to http_parser_execute().
16 years ago
Ryan
a7b96d81f1
API Change: parser->version_major/minor replaced with parser->version.
...
Allows for simpler processing.
16 years ago
Ryan
59a37f6600
Inline http_parser_should_keep_alive().
16 years ago
Ryan
e244dbf797
Fix whitespace, clean up some macros.
16 years ago
tomika
152cce76df
Include added for MSC compatibilty
16 years ago
Jeremy Hinegardner
b538749fc3
Allow spaces between a chunked start and the CRLF
16 years ago
Ryan
da47c13169
bump version
16 years ago
Joe Damato
431707b5b1
fixing bitfield misuse
16 years ago
Sergey Shepelev
0e34695b94
fixed link to gists, added 2 more links
16 years ago
Sergey Shepelev
9b6b8c288c
more detailed description of callbacks workflow
16 years ago
Jeremy Hinegardner
37a0ff8928
Initialize the on_fragment callback pointer
...
http_parser_init() did not initialize the http_parser.on_fragment.
16 years ago
Jeremy Hinegardner
4ac5581cc6
The Reason Phrase on a response is optional.
...
The standard has it as *<TEXT, exlcuding CR, LF>
and a response with no reason phrase was found in
the wild.
16 years ago
Ryan
36e74bea33
Add LICENSE file to 'make package'
16 years ago
Ryan
23b8eed44c
Fix errors for -Wall.
16 years ago
Ryan
cc5c9b037c
Correctly error out on non-zero return values.
16 years ago
Ryan
900815228c
Don't be clever with the includes
16 years ago
Ryan
bbf0110385
Simply makefile to work on freebsd
16 years ago
Ryan
88049b02a5
test: Check that message_begin, message_complete, headers_complete always called
16 years ago
Ryan
9367b74a3d
Check for integer overflow in content-length.
...
Also only allow single digits in the HTTP version.
Need multiple digits? Convince me.
16 years ago
Ryan
b0e94e51f5
Merge commit '9f59cd9'
16 years ago
Ryan
9f59cd926f
Check for buffer overflow attacks.
16 years ago
Ryan
1776708191
stylistic clean ups. dont include assert.h unless NDEBUG
16 years ago
Ryan
f6dc4f3d4b
Add docs regarding the resetting of status_code
16 years ago
Ryan
961d455618
Add license file with Mongrel's license.
16 years ago
Ryan
212f72137d
fix 'make package'
16 years ago
Ryan
86bee2ea5f
update readme with repo links
16 years ago
Ryan
8cae1feeb4
random clean ups
16 years ago
Ryan
7898f1a97a
add http_parser_should_keep_alive()
16 years ago
Ryan
d1d91be27b
add list of features to readme
16 years ago
Ryan
6669225f4d
add make package
16 years ago
Ryan
1500261a35
Add README file.
16 years ago
Ryan
fff71362fe
Break on non-zero return value from on_body and on_headers_complete.
...
Changed skip_body() from a function to a marco. This is rather hacky and
should be dealt with better in the future.
Also add handling for callback on_message_begin.
16 years ago
Ryan
cc88f71204
Partially handle callback return values
16 years ago
Ryan
c202e8ecbe
Add second response fixture. Response tests pass.
16 years ago
Ryan
c288a966fe
lint
16 years ago
Ryan
5214fb2524
for clarity, replace is_request_stream with enum http_parser_type
16 years ago
Ryan
9906cb69e6
Clean up the tests in preperation for testing responses.
16 years ago
Ryan
7476612ec2
Deep asserts in test.c
...
Instead of returning a boolean and calling assert() in main(), test.c now
calls assert() as soon as possible. This will require gdb to know what is failing
but that was probably already true before and this way uses a lot less code.
I also added a conditional to the parser which, perhaps, splits input more efficiently
into request and responses. I'm playing around with this and it will likely
change again in the future.
16 years ago
Ryan
97d4572c68
Remove "ebb_message" object from libebb's parser.
...
And much more:
* Begin the framework for parsing HTTP responses
* Modify the test code with the new layout
* Remove EBB_ prefix and use just HTTP_
* Start simple new Makefile
Currently the test passes but it is only checking HTTP requests. I get the
feeling that it is much slower than before, although I have no solid
evidence for this.
16 years ago