Fork me on GitHub
#aleph
<
2018-09-03
>
karlis11:09:41

Hi! Is it possible to close connections early in http client? I'm fetching first rows from large files on S3 and don't need to transfer the whole files.

bertofer13:09:09

Not sure about closing the connection early in http, but if you know the size of your rows, you can use Range header (https://stackoverflow.com/questions/36436057/s3-how-to-do-a-partial-read-seek-without-downloading-the-complete-file)

karlis08:09:13

👍 thanks! this does exactly what I want.