Skip to content

Remove deprecated HttpMethod.custom 4-arg overload (since 1.4.0)#1123

Draft
He-Pin wants to merge 2 commits into
apache:mainfrom
He-Pin:remove/deprecated-httpmethod-custom
Draft

Remove deprecated HttpMethod.custom 4-arg overload (since 1.4.0)#1123
He-Pin wants to merge 2 commits into
apache:mainfrom
He-Pin:remove/deprecated-httpmethod-custom

Conversation

@He-Pin

@He-Pin He-Pin commented Jul 5, 2026

Copy link
Copy Markdown
Member

Motivation

The 4-arg overload of HttpMethod.custom was deprecated since pekko-http 1.4.0 in favor of the 5-arg overload with contentLengthAllowed parameter.

Modification

Removed HttpMethod.custom(name, safe, idempotent, requestEntityAcceptance) from Scala and Java APIs. Removed private oldContentLengthCondition helper. Added MiMa filters.

Result

Deprecated API removed. Users should use the 5-arg custom overload.

….4.0)

Motivation:
The 4-arg overload of HttpMethod.custom was deprecated since pekko-http 1.4.0
in favor of the 5-arg overload that includes contentLengthAllowed parameter.

Modification:
Removed deprecated HttpMethod.custom(name, safe, idempotent, requestEntityAcceptance)
from both Scala and Java APIs. Also removed the private helper
oldContentLengthCondition that was only used by the deprecated method.

Added MiMa filters for binary compatibility exceptions.

Result:
Deprecated API removed. Users should use the 5-arg custom overload.
@He-Pin He-Pin marked this pull request as ready for review July 5, 2026 04:05
@pjfanning

Copy link
Copy Markdown
Member

I, personally, prefer to keep deprecated methods around for a while and these were only deprecated recently. 1.4.0 has not been released yet.

@He-Pin He-Pin marked this pull request as draft July 5, 2026 08:41
@He-Pin

He-Pin commented Jul 5, 2026

Copy link
Copy Markdown
Member Author

Ok ,let's keep it for the next major release

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