-
Notifications
You must be signed in to change notification settings - Fork 62
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Use AWS.Response
to handle streaming/raw/parsing
#384
Conversation
At the moment I've made the basic |
bors try |
tryBuild failed: |
I'll pick this up again next week. Lots of details to work though yet but I think overall this is looking like the right approach. There is still a question of how to make this very user friendly for newcomers |
6b38d5b
to
503aee8
Compare
503aee8
to
bb045bf
Compare
bors try |
tryBuild failed: |
Things feel like they are starting to align here. Overall the concept of returning a The change is less breaking than I originally expected as the I'm sure I've got some rounds of debugging to do yet but the only major change I anticipate is I still may want to support passing in a user supplied Update: User supplied |
bors try |
tryBuild failed: |
bors try |
tryBuild failed: |
d556cf6
to
c027974
Compare
bors try |
tryBuild failed: |
bors try |
tryBuild failed: |
Allows for legacy responses to still use `Base.BufferStream`
77a33e1
to
5244a9e
Compare
Validated that #458 is working this these rebased changes: #458 (comment) |
bors r+ |
The idea is to use a struct in AWS.jl that can be used to handle the automatic parsing that is currently used to turn XML/JSON into a dict while also giving the option of accessing the raw output as a string or stream without all the keywords currently needed to be specified.
Depends on:
@service
#457Related:
Closes:
close
ing streams correctly? #433_http_request
only close streams it has created? #468 (when usinguse_response_type
the passed in I/O is not closed)Update: The tests in this PR run using the deprecated behaviour. Mainly I did that here to prove this change is non-breaking. For the updated tests see #458