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

Upgrade/remove dependency curl-ev and migrating some deprecation cURL… #883

Open
wants to merge 3 commits into
base: develop
Choose a base branch
from

Conversation

xensmo
Copy link

@xensmo xensmo commented Mar 12, 2025

Fix #867

edit unused functions ~/clients/http/request.hpp and request.cpp
comment unused new version deprecated function Request::form(Form&& form); and
create new function mark [[maybe_unused]] Request::mime(Mime&& mime);


Note: by creating a PR or an issue you automatically agree to the CLA. See CONTRIBUTING.md. Feel free to remove this note, the agreement holds.

@xensmo xensmo requested a review from segoon as a code owner March 12, 2025 17:56
} // namespace curl

namespace clients::http {

#if LIBCURL_VERSION_NUM <= 0x074700
class Form final {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we have a few thousands usages of Form in our internal codebase. It can not be removed, but its implementation should be transparent ly replaced.

bool auth_only,
std::string_view user,
std::string_view password
) {
easy().set_http_auth(value, auth_only);
easy().set_user(std::string{user}.c_str());
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice catch!

@@ -34,106 +33,200 @@
USERVER_NAMESPACE_BEGIN

namespace curl {
namespace {
namespace detail {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There are too many changes, many of them are unrelated to the task.

Stick to the rule ”one problem - one PR". Otherwise we wont be able to review the PR in a reasonable time and we wont be able to merge it (because it wouod definitely break somerlthin in our internal code base).

Revert all the changes that are not related to the Form deprecation problem

@@ -0,0 +1,23 @@
// !TODO this @file curl-ev/mime.cpp create in 2025 year //
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Remove the TODOs

@xensmo xensmo requested a review from apolukhin March 13, 2025 17:34
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.

Move from some deprecations in cURL since 7.56.0
2 participants