-
Notifications
You must be signed in to change notification settings - Fork 312
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
base: develop
Are you sure you want to change the base?
Conversation
} // namespace curl | ||
|
||
namespace clients::http { | ||
|
||
#if LIBCURL_VERSION_NUM <= 0x074700 | ||
class Form final { |
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.
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()); |
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.
Nice catch!
@@ -34,106 +33,200 @@ | |||
USERVER_NAMESPACE_BEGIN | |||
|
|||
namespace curl { | |||
namespace { | |||
namespace detail { |
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.
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
core/src/curl-ev/mime.cpp
Outdated
@@ -0,0 +1,23 @@ | |||
// !TODO this @file curl-ev/mime.cpp create in 2025 year // |
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.
Remove the TODOs
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.