Niels Provos
de7db33a61
low-level interfaces for streaming; from dug song
...
i applied some bug fixes and slight re-arranged the logic
on when to call the close notification callback;
i also don't like the streaming interface; i'd rather
see it do the chunked response formatting explicitly.
svn:r298
2006-12-09 02:58:12 +00:00
Niels Provos
852d05a3c0
support retrying for connections; from dug song
...
small tweaks from me.
svn:r297
2006-12-09 01:41:57 +00:00
Niels Provos
2225eec22b
decode uri when sending a request; from dug song
...
svn:r296
2006-12-09 01:33:03 +00:00
Niels Provos
785923704c
fix a bug where event_set was called on a pending event;
...
don't read body for return codes that do not require a body;
from dug song.
svn:r294
2006-12-06 04:12:11 +00:00
Niels Provos
c6e285d31a
allow gotsig to terminate active event loop;
...
free http connection on failed incoming connections;
bugs pointed out by Dug Song.
svn:r293
2006-12-06 03:38:41 +00:00
Niels Provos
ec0679199f
fix cases where there is no content or transfer encoding was specified
...
from Dug Song
svn:r291
2006-12-02 21:28:39 +00:00
Niels Provos
942656bb5c
persistent connections are somewhat complicated; detect on the client side if the
...
server closes a persistent connection. previously, we would have failed the next
request on that connection. provide test case.
svn:r277
2006-11-23 06:32:20 +00:00
Niels Provos
2d028ef6c1
fix a bug where rpc would not be scheduled when they were queued; test for it.
...
allow a configurable timeout for connections and RPCs.
svn:r274
2006-11-22 06:54:28 +00:00
Niels Provos
ce436242ad
an attempt at differentiated error handling for timeouts and eof.
...
really this needs to be propagated all the way to the callback.
svn:r273
2006-11-22 05:03:02 +00:00
Niels Provos
868f10e7c9
mingw fixes from Nick
...
svn:r271
2006-11-22 01:21:10 +00:00
Niels Provos
31ba30abfe
make regression test work for poll and select
...
svn:r265
2006-11-18 08:51:12 +00:00
Niels Provos
1a64c982eb
some compilers don't like C99 inline variable declaration
...
svn:r264
2006-11-18 07:30:21 +00:00
Niels Provos
36212f9df0
make persistent connections work; needs more testing
...
svn:r261
2006-11-18 03:05:26 +00:00
Niels Provos
d2c27da114
introduce is connection close
...
svn:r260
2006-11-18 02:10:25 +00:00
Niels Provos
a67d9cb115
add "Connection: close" to the output headers of the HTTP server reply;
...
we don't currently support persistent connections; although that's going
to be easy to add.
svn:r259
2006-11-17 07:45:42 +00:00
Niels Provos
c4836d1053
make sure that the rpc callback receives an unmarshaled payload;
...
make sure that the rpc reply contains a good rpc structure, too.
svn:r258
2006-11-17 06:06:17 +00:00
Niels Provos
1caff9bcc8
we indicate a failed request by removing the uri from the request object
...
svn:r257
2006-11-16 15:59:42 +00:00
Niels Provos
44bd5ab4e0
prefix was missing /; malformed request caused server to crash
...
svn:r256
2006-11-16 08:49:26 +00:00
Niels Provos
f554234f74
first stab at an rpc layer; this breaks the regression test.
...
svn:r254
2006-11-16 07:36:20 +00:00
Niels Provos
768aa15c77
don't need to include getopt here
...
svn:r253
2006-11-12 00:59:56 +00:00
Niels Provos
94af961f36
get rid of err.h
...
svn:r218
2006-07-18 06:35:48 +00:00
Niels Provos
ba7262ebdf
reorganization of the http functionality; we separate http handling into a
...
connection object and a request object; also make it clear which buffers are
used for input and output; unittests not complete yet.
svn:r217
2006-07-17 00:33:57 +00:00
Niels Provos
6813af3f11
move http related prototypes to evhttp.h
...
svn:r214
2006-06-10 22:37:21 +00:00
Niels Provos
147b71e33c
rename http.h to http-internal.h - i wish there were decent refactoring tools
...
for open source programmers.
svn:r213
2006-06-10 22:28:21 +00:00
Niels Provos
a32839c8ec
some nit-picking from poul-henning kamp
...
svn:r208
2006-03-28 04:17:51 +00:00
Niels Provos
38b33048eb
make a simple test for HTTP POST requests
...
svn:r205
2006-02-27 02:27:37 +00:00
Niels Provos
896bf3a260
many changes for fixing a small bug: post requests would not send the post
...
data. I took the opportunity to reorganize a bit.
svn:r201
2006-02-13 02:22:48 +00:00
Niels Provos
6717cf313a
fix a compile problem when USE_DEBUG is enabled
...
svn:r198
2006-02-03 19:24:28 +00:00
Niels Provos
a3bb4a035f
I often need some very simple HTTP functionality, so this is a first stab
...
at integrating something really simple with HTTP. The interface is still
evolving as I start messing with it. Not all the interfaces are properly
exported yet.
I am also trying to figure out how to intelligently hide the details about
the different structures from users, so that that things can be changed
around later.
svn:r196
2006-01-22 05:08:50 +00:00