Chunting Gu
Chunting Gu
暂时还没想好接口应该怎么设计(回调?future?), Keep-Alive(持久连接)和对象生命周期都不好管理, 异步 client 接口用起来也不方便。 最初是参考 Python requests 程序库来做的,requests (v2) 也没有提供异步的客户端接口。
Multipart form doesn't support streaming. If you don't mean multipart form data, here are some examples for data streaming: Client: https://github.com/sprinfall/webcc/blob/master/examples/file_downloader.cc Server: https://github.com/sprinfall/webcc/blob/master/examples/static_file_server.cc Server (RESTful): https://github.com/sprinfall/webcc/blob/master/examples/book_server/views.cc (see `BookPhotoView::Put()`)
No.
之前通过条件变量强行做的同步被去掉了,但是一个 request 调用下来仍然是”同步“的。
Thank you for the comment.
It's a great suggestion but I have no time to do it right now. Sorry.