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

support async_upload, support async_sendfile() with zerocopy in async_upload & async_chunked_upload #608

Merged
merged 17 commits into from
Jul 2, 2024
2 changes: 1 addition & 1 deletion example/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ async_simple::coro::Lazy<resp_data> chunked_upload1(coro_http_client &client) {

auto fn = [&file, &buf]() -> async_simple::coro::Lazy<read_result> {
auto [ec, size] = co_await file.async_read(buf.data(), buf.size());
co_return read_result{buf, file.eof(), ec};
co_return read_result{{buf.data(), buf.size()}, file.eof(), ec};
};

auto result = co_await client.async_upload_chunked(
Expand Down
Loading
Loading