[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[Libevent-users] HTTP proxy + chunked requests handling
- To: libevent-users@xxxxxxxxxxxxx
- Subject: [Libevent-users] HTTP proxy + chunked requests handling
- From: Jedrzej Nowak <pigmej@xxxxxxxxx>
- Date: Wed, 9 Jun 2010 23:39:54 +0200
- Delivered-to: archiver@xxxxxxxx
- Delivered-to: libevent-users-outgoing@xxxxxxxx
- Delivered-to: libevent-users@xxxxxxxx
- Delivery-date: Wed, 09 Jun 2010 17:40:06 -0400
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:date:message-id :subject:from:to:content-type:content-transfer-encoding; bh=/IxShokD7YnPJON8YfA1mlgSmf2I0ziLRZKLaot4GGY=; b=ixvCXEUUgkbj1mCiNMQdwFchrV1f1XlvKsj9N/+74t6JIiL/RnsWTvExFBPZvzO7XZ V/nBDVmWt5nfDwcruqHL7PWGSpcCcyhnSnHPZFNaAQ7jCHOxh7MhU1pXFbL849F9XBqs Vhj865+/Rq8r/VasMUFmZ4B/rnBQhA2Mdw+tE=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type :content-transfer-encoding; b=gxEsVhrbV+yhVqd0SC3sNqKzO3a3+hg0UPv3MugzpWU/mfqdFAwAg9QxyufTzKZsKD q2GNhwQzfxBcy7gIg8nJkO903t4pPGRSQ+dJs8sga3NYk2xBY4fbBVLAS2rQjkySmNJM anMrRtLRK3oo3tQx+g73Lvj0/32jze7Qhhz1k=
- Reply-to: libevent-users@xxxxxxxxxxxxx
- Sender: owner-libevent-users@xxxxxxxxxxxxx
Hey,
How Can I handle the chunked requests in my proxy ? I have *really* no
idea how to handle those requests using libevent 1.4.x, I've added the
chunked_callback and it's called.
The problem is that I really don't know what should I do next. I have
no idea where should I use:
void evhttp_send_reply_end (struct evhttp_request *)
void evhttp_send_reply_start (struct evhttp_request *, int, const char *)
Now I'm doing something like this:
void http_request_chunked(struct evhttp_request *req, void *arg)
{
struct req *r=arg;
evhttp_send_reply_chunk(r->req,req->input_buffer);
}
So it generally does nothing...
Greetings
JÄdrzej Nowak
***********************************************************************
To unsubscribe, send an e-mail to majordomo@xxxxxxxxxxxxx with
unsubscribe libevent-users in the body.