-
Notifications
You must be signed in to change notification settings - Fork 18
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
DM-46320: Supporting the multipart/form-data format in the Qserv's push-mode ingest protocol #868
Conversation
} | ||
}; | ||
_contentReader( | ||
[&](httplib::MultipartFormData const& file) -> bool { |
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 you really want [&]
here? Arg is already a const ref (similar question below for pointer and size_t
, customarily passed by value)
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.
The problem is that this lambda calls 3 methods of the current class. So, I would need at least this
to make the compiler happy. It also modifies a value of currentFile
. It's easier to pass &
.
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.
LGTM -- thanks! httplib
seems pretty nice...
…t body Added a unit test for testing the request body class http::RequestBodyJSON.
Class http::Module was split into two modules: http::BaseModule and a reduced version of http::Module. The new hierarchy is meant to prepare ground for introducing an intermediate base class that will support data streaming (and file uploading requests) in which the request body can't be read at once. The new class will inherit from http::BaseModule.
2838340
to
8ae7c0b
Compare
No description provided.