Hadley Wickham
Hadley Wickham
@jcheng5 discovered that curl actually has a native implementation: https://curl.se/libcurl/c/CURLOPT_AWS_SIGV4.html. So auth, at least, will be easier than expected.
Some docs for the protocol at https://docs.aws.amazon.com/transcribe/latest/dg/streaming-setting-up.html#streaming-event-stream. I'm going to try and parse this in httr2 so you'll be able to use it if desired.
And implemented in https://github.com/r-lib/httr2/pull/571 😄 Here's an example of what streaming code looks like: ```R creds
You could also provide a call back interface (like the older `req_perform_stream()`) but returning the connection object gives the user maximum flexibility.
Hmmmm that does ring a vague bell.
Can you please provide a minimal reprex (*repr*oducible *ex*ample)? The goal of a reprex is to make it as easy as possible for me to recreate your problem so that...
Thanks! Here's a somewhat more minimal reprex: ``` r library(readr) ascii_vector dat problems(dat) problems(out) ``` Created on 2023-07-31 with [reprex v2.0.2](https://reprex.tidyverse.org)
Want to do a PR?