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

refactor(http)!: replace ListBody with Vec #2096

Closed
wants to merge 1 commit into from

Conversation

vilgotf
Copy link
Member

@vilgotf vilgotf commented Jan 28, 2023

Since there's no need for any special Vec<T> handling, this PR removes the ListBody<T> marker type.

Together with #2083 this PR leaves only the EmptyBody marker, after which the marker module could become private, exporting EmptyBody directly in the request module.

Somewhat dependent upon #2083

TODO

  • Create a deprecated models method notifying users to switching to model

@vilgotf vilgotf added c-http Affects the http crate t-refactor Refactors APIs or code. labels Jan 28, 2023
@github-actions github-actions bot added the m-breaking change Breaks the public API. label Jan 28, 2023
@vilgotf vilgotf force-pushed the vilgotf/refactor/http/listbody branch 3 times, most recently from 3ba4b42 to 1c39ed1 Compare January 28, 2023 08:03
@zeylahellyer
Copy link
Member

I would like to do some thinking about this marker, so I would like to hold this for after 0.15 so we have time to do so.

@zeylahellyer zeylahellyer added the w-do-not-merge PR is blocked or deferred label Feb 2, 2023
@vilgotf vilgotf force-pushed the vilgotf/refactor/http/listbody branch from 1c39ed1 to ea2eb61 Compare February 5, 2023 09:48
@vilgotf vilgotf marked this pull request as draft June 22, 2023 13:12
@vilgotf vilgotf force-pushed the vilgotf/refactor/http/listbody branch from ea2eb61 to c9f13f0 Compare January 26, 2024 13:41
@vilgotf vilgotf removed the w-do-not-merge PR is blocked or deferred label Jan 26, 2024
@vilgotf vilgotf marked this pull request as ready for review January 26, 2024 13:41
@vilgotf vilgotf requested a review from a team January 26, 2024 13:41
pub fn models(self) -> ModelFuture<Vec<T>> {
Response::<Vec<T>>::new(self.inner).model()
/// response body could not be deserialized into the target model.
#[deprecated(since = "0.15.0", note = "use `model` instead")]
Copy link
Member

Choose a reason for hiding this comment

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

just drop this entirely since it's targeting next

@vilgotf
Copy link
Member Author

vilgotf commented Jan 26, 2024

Let's try something fun instead of giving on up the current API: #2310

@vilgotf vilgotf closed this Jan 26, 2024
@vilgotf vilgotf deleted the vilgotf/refactor/http/listbody branch January 26, 2024 14:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
c-http Affects the http crate m-breaking change Breaks the public API. t-refactor Refactors APIs or code.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants