-
Notifications
You must be signed in to change notification settings - Fork 253
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
migrate SDKs from http::Request
to azure_core::Request
#833
Conversation
http:Request
to azure_core::Request
http:Request
to azure_core::Request
http::Request
to azure_core::Request
http::Request
to azure_core::Request
http::Request
to azure_core::Request
Co-authored-by: bmc-msft <[email protected]>
|
||
let request = request.body("".to_owned())?; | ||
request.set_body(""); |
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.
Do we need this? Is this not the default?
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.
I'm not sure.
common_storage_response_headers: headers.try_into()?, | ||
etag: etag_from_headers(headers)?.into(), | ||
location: headers | ||
.get("location") |
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.
.get("location") | |
.get_as_parsed::<Url>::("location") |
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.
No get_as_parsed
yet. Would be nice.
This completes the migration from
http::Request
toazure_core::Request
. This should make moving to HTTP pipelines easier. Some highlights:execute_request_check_status
functionhttp::Response<Bytes>
, it returns a newazure_core::CollectedResponse
http:HeaderMap
withazure_core::headers::Headers
get_as_str
or_err
variants likeget_as_str_or_err
http:request::Builder
with functions inazure_core::Request