G'day, I'm looking at the evhttp code to build a simple HTTP proxy for some testing. Unfortunately about the only example I can find of the evhttp code is Niels' spybye and as far as I can tell there's no "streaming" between client and server - request and reply bodies are fully read into an evbuffer and then written out in one hit.
Ideally what I'd like to be able to do is receive callbacks from evhttp when the buffers are full/empty so I can schedule further operations. Unfortunately there doesn't seem to be any easy way of doing it within the current code. Have I missed something, or will I have to patch evhttp to provide the extra functionality? Eg, I can begin writing out via evhttp_send_reply_start() and evhttp_send_reply_chunk() but I can't find anything in the current API that can be hooked into to be informed when the chunk has been written so I can - if possible - schedule another chunk. Also, I can't seem to find any support for trailers in the codebase. Have I just missed it? Thanks, Adrian _______________________________________________ Libevent-users mailing list Libevent-users@monkey.org http://monkey.org/mailman/listinfo/libevent-users