libmicrohttpd
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[libmicrohttpd] How to access raw request bytes sent to a request handle


From: John Duncan
Subject: [libmicrohttpd] How to access raw request bytes sent to a request handler (and total request size)?
Date: Mon, 17 Apr 2017 14:50:29 -1000

I'd like to be able to access the raw (decrypted) request data recieved and total request size from within a request handler if it's available.  I'd like to use it for data rate limiting  with regards to individual request handlers.  (eg.  one request handler has a 8kbs limit, one has a 16kbs limit, that kinda thing)

I know you can use MHD_get_connection_values to get access to all component data, but I'd prefer to get the raw sent request if possible as it'd be very easy to just use the request length as an additive value to calculate the bytes-per-second average for any given request handler.

The alternative is using iterators with MHD_get_connection_values, which come out to be less efficient.


Thanks!
~JD

reply via email to

[Prev in Thread] Current Thread [Next in Thread]