Skip to content
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

[coro_http_client][feat]async_upload_chunked support iostream/filestream #448

Merged
merged 1 commit into from
Sep 8, 2023

Conversation

qicosmos
Copy link
Collaborator

@qicosmos qicosmos commented Sep 8, 2023

Why

support iostream/fstream.

What is changing

Example

    auto result = co_await client_.async_upload_chunked(
        str_url, coro_http::http_method::PUT, "test.xml",
        coro_http::req_content_type::xml);

or

    auto stream = std::make_shared<std::ifstream>("test.xml", std::ios::binary);

    auto result = co_await client_.async_upload_chunked(
        str_url, coro_http::http_method::PUT, stream,
        coro_http::req_content_type::xml);

@qicosmos qicosmos merged commit b9d6008 into alibaba:main Sep 8, 2023
29 checks passed
@qicosmos qicosmos deleted the update_coro_http branch September 8, 2023 06:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant