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

DM-46320: Supporting the multipart/form-data format in the Qserv's push-mode ingest protocol #868

Merged
merged 7 commits into from
Oct 4, 2024

Conversation

iagaponenko
Copy link
Contributor

No description provided.

}
};
_contentReader(
[&](httplib::MultipartFormData const& file) -> bool {
Copy link
Contributor

@fritzm fritzm Oct 3, 2024

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)

Copy link
Contributor Author

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 &.

Copy link
Contributor

@fritzm fritzm left a 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.
@iagaponenko iagaponenko merged commit 1a187e7 into main Oct 4, 2024
11 checks passed
@iagaponenko iagaponenko deleted the tickets/DM-46320 branch October 4, 2024 03:28
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.

2 participants