-
Notifications
You must be signed in to change notification settings - Fork 56
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
Feat: Enable Radon scripts to run on binary sources #2406
base: 2.0-base
Are you sure you want to change the base?
Conversation
…/HEAD into a JSON string Instead or parsing http::Response::body into a RadonMap
rad/src/lib.rs
Outdated
let (parts, mut body) = response.into_parts(); | ||
|
||
let response: RadonTypes; | ||
match parts.headers.get("accept-ranges") { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
When you only what to check for presence and not for value, you can do ``cointains_key`.
rad/src/lib.rs
Outdated
let mut response_bytes = Vec::<u8>::default(); | ||
match retrieve.kind { | ||
RADType::HttpHead => { | ||
// todo: assert http-head responses should never return binary streams |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Makes sense.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Created RadonError response containing RadError::BufferIsNotValue
struct.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is good to go, but will need TAPI guards. Let's leave it open for now and merge once 2.0 TAPI guards are implemented on the 2.0 integration branch.
No description provided.