[Top][All Lists]

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

Re: [libmicrohttpd] How to send Chunked messages

From: Christian Grothoff
Subject: Re: [libmicrohttpd] How to send Chunked messages
Date: Wed, 28 Nov 2018 17:55:40 +0100
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.3.0

Dear Santos,

MHD can send chunked response to the client. That said, this is not a
question of how large the file is. Especially, if it is simply a very
large file, MHD allows you to use sendfile() to avoid having a copy of
the data in userspace.  Chunked encoding is usually only used if the
application simply does not know the size of the response ahead of time.

Happy hacking!


On 11/28/18 4:09 PM, Santos Das wrote:
> Hi,
> How can MHD send the chunked message to the client ?   
> When a server receives a simple GET request, and the response is so
> large that it must be sent back using the "chunked" procedure.
> An example would be if a server received a file GET request, and the
> response is a large data file.    
> Can you please point me to some example on how this can be done using MHD ?
> Thanks in advance.
> Regards, Santos

Attachment: signature.asc
Description: OpenPGP digital signature

reply via email to

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