Skip to content

Commit 00f8950

Browse files
authored
support async_upload, support async_sendfile() with zerocopy in async_upload & async_chunked_upload (#608)
1 parent 2660e11 commit 00f8950

File tree

8 files changed

+630
-73
lines changed

8 files changed

+630
-73
lines changed

example/main.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ async_simple::coro::Lazy<resp_data> chunked_upload1(coro_http_client &client) {
7575

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

8181
auto result = co_await client.async_upload_chunked(

0 commit comments

Comments
 (0)