Cowboy: how to stream (Partial Content 206) a video?

Hi guys,

I’ve a large .mp4 video (~300MB) that I’d like to stream with Cowboy (2.10.0).

I tried to put the video and serve is a static file, but Cowboy doesn’t stream it and send it with HTTP response code 200 OK.

Is there a way to configure Cowboy to steam this particular video by using Partial Content 206 instead?

Many thanks

Someone posted a stream handler implementation a few weeks ago:


@fancycade thanks a lot

1 Like