libmicrohttpd
[Top][All Lists]
Advanced

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

[libmicrohttpd] MHD_ContentReaderCallback and Byte serving


From: silvioprog
Subject: [libmicrohttpd] MHD_ContentReaderCallback and Byte serving
Date: Fri, 15 Apr 2016 23:45:10 -0300

Hello,

I've used the MHD_create_response_from_callback() to serve big files, however, I need to send only a portion of some certain files. It can be easily done using the HTTP 1.1 Byte serving, that can be implemented following the RFC 7233 and getting inspirations from Node JS send logic.

Considering this goals, can I get the client range request in the MHD_ContentReaderCallback()? For example, considering that client sent "Range: bytes=1-2", can I get these values parsed in this callback parameters?

I took a look at MHD manual, but unfortunately I found only:

"The library is supposed to handle everything that it must handle (...), such as basic connection management; however, detailed interpretations of headers — such as range requests — and HTTP methods are left to clients."

Any tip are welcome.

Thank you!

--
Silvio Clécio

reply via email to

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