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

Deprecate payloadBody(CloseableIterable<Buffer>) methods #1797

Merged
merged 3 commits into from
Sep 5, 2021

Conversation

idelpivnitskiy
Copy link
Member

@idelpivnitskiy idelpivnitskiy commented Sep 3, 2021

Motivation:

BlockingStreamingHttpRequest and BlockingStreamingHttpResponse
already have a payloadBody(Iterable<Buffer>) overload that can be
used instead. There is no need for more specialized overload for
CloseableIterable.

Modifications:

  • Mark payloadBody(CloseableIterable<Buffer>) methods as @Deprecated;
  • Add default implementations for payloadBody(CloseableIterable<Buffer>)
    and payloadBody(CloseableIterable<Buffer>, HttpSerializer<T>);

Result:

Less public API on BlockingStreamingHttpRequest and
BlockingStreamingHttpResponse.

Motivation:

`BlockingStreamingHttpRequest` and `BlockingStreamingHttpResponse`
already have a `payloadBody(Iterable<Buffer>)` overload that can be
used instead. There is no need in more specialized overload for
`CloseableIterable`.

Modifications:

- Mark `payloadBody(CloseableIterable<Buffer>)` methods as `@Deprecated`

Result:

Less public API on `BlockingStreamingHttpRequest` and
`BlockingStreamingHttpResponse`.
@idelpivnitskiy idelpivnitskiy merged commit f6b7100 into apple:main Sep 5, 2021
@idelpivnitskiy idelpivnitskiy deleted the CloseableIterable branch September 5, 2021 05:16
idelpivnitskiy added a commit that referenced this pull request Sep 5, 2021
Motivation:

`BlockingStreamingHttpRequest` and `BlockingStreamingHttpResponse`
already have a `payloadBody(Iterable<Buffer>)` overload that can be
used instead. There is no need for more specialized overload for
`CloseableIterable`.

Modifications:

- Mark `payloadBody(CloseableIterable<Buffer>)` methods as `@Deprecated`;
- Add `default` implementations for `payloadBody(CloseableIterable<Buffer>)`
and `payloadBody(CloseableIterable<Buffer>, HttpSerializer<T>)`;

Result:

Less public API on `BlockingStreamingHttpRequest` and
`BlockingStreamingHttpResponse`.
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