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

Now that ClassicHttpRequests is no longer an enum, we need to way to #205

Merged
merged 3 commits into from
Jan 28, 2020

Conversation

garydgregory
Copy link
Member

generically build requests from method names. Update all factory classes
with matching APIs for Method and String method name inputs.

generically build requests from method names. Update all factory classes
with matching APIs for Method and String method name inputs.
// TODO Next version of HttpCore:
// Method.normalizedValueOf(method)
private static Method normalizedValueOf(final String method) {
return Method.valueOf(Objects.requireNonNull(method, "method").toUpperCase(Locale.ROOT));
Copy link
Member

Choose a reason for hiding this comment

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

@garydgregory Please use Args.notNull for consistency with the rest of the code base.

Copy link
Member Author

Choose a reason for hiding this comment

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

Done.

@ok2c
Copy link
Member

ok2c commented Jan 28, 2020

@garydgregory Looks good to me. Please add the release notes with the same commit if you have to, but please do not do that as a separate commit.

generically build requests from method names. Update all factory classes
with matching APIs for Method and String method name inputs.
@garydgregory garydgregory merged commit 538a60b into apache:master Jan 28, 2020
asfgit pushed a commit that referenced this pull request Jan 28, 2020
generically build requests from method names. Update all factory classes
with matching APIs for Method and String method name inputs.

(#204), (#205)
garydgregory added a commit to garydgregory/httpcomponents-client that referenced this pull request Jan 29, 2020
…pache#205)

* Now that ClassicHttpRequests is no longer an enum, we need to way to
generically build requests from method names. Update all factory classes
with matching APIs for Method and String method name inputs.
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