Okay, in that case, you really shouldn't add a content-length header. -Jon

On Thu, Feb 20, 2020 at 1:13 PM Bogdan Popa <bog...@defn.io> wrote:
>
>
> Jon Zeppieri writes:
>
> > When you stream the response, it doesn't use a chunked transfer encoding? 
> > -Jon
>
> The web server chunks all responses on HTTP/1.1 connections[1].
>
> I can confirm that the web server works great[2] for streaming uses cases
> like long polling!
>
> [1]: 
> https://github.com/racket/web-server/blob/564120c0f5e4bb959d4592a37037146d8411948e/web-server-lib/web-server/http/response.rkt#L56
> [2]: 
> https://github.com/Bogdanp/nemea/blob/5c8a58121ed9f264277d7eb56187fbeaad506138/nemea/http/reporting.rkt#L18-L35

-- 
You received this message because you are subscribed to the Google Groups 
"Racket Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to racket-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/racket-users/CAKfDxxxy_evsbmAPk02K3JX1Z3-sBA5dZDzZ6p8uCtnqicqBvw%40mail.gmail.com.

Reply via email to