Repository navigation
Restore selected 0.8.3 APIs and add HTTP response conversion - #326
Merged
Merged
Conversation
alexliesenfeld
marked this pull request as ready for review
October 4, 2026 23:29
FalkWoldmann
reviewed
Oct 5, 2026
FalkWoldmann
reviewed
Oct 5, 2026
| /// # Ok(()) | ||
| /// # } | ||
| /// ``` | ||
| pub fn to_http_response(&self) -> Result<http::Response<Bytes>, Error> { |
Member
There was a problem hiding this comment.
This returns common::data::Error, which users can't name, so they can only ? it into a boxed error or print it. Fine if that's intended, just worth deciding before it becomes public API.
Member
Author
There was a problem hiding this comment.
For now, I would leave it like this and revisit it later. I would not expect that this is a breaking change for most users.
Member
There was a problem hiding this comment.
Alright, works for me. Since nobody can name it, changing it later won't break anyone. Could we open an issue for it so it doesn't get lost before 1.0?
FalkWoldmann
reviewed
Oct 5, 2026
…compatibility # Conflicts: # CHANGELOG.md
FalkWoldmann
left a comment
Member
There was a problem hiding this comment.
A few more changelog points, the rest looks good to me
This was referenced Oct 20, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Restore selected APIs and configuration behavior from 0.8.3 that changed on
master.HttpMockStateManagerandMockServerStatenames. Keep the concrete manager implementation, with raw state remaining crate-private; direct access to the raw state is an accepted breaking change. The low-levelHttpMockServer::newconstructor also remains crate-private; useHttpMockServerBuilder.HttpMockResponse::to_http_response()as a named conversion to an HTTP response with a byte body. It borrows the original response and returns aResult./httpmockworking directory while keeping the slim Debian runtime and/usr/local/bin/httpmockexecutable location.The removal of the empty
experimentalfeature, conversion-error variant renames and removals from #286 (with remaining variants qualified through their error type),RouterErrorconversion removals from #286,MockAPI changes from #285, body-helper cleanup andquery_params_map()removal from #246, matcher/backend visibility changes from #312, dependency and HTTP/2 changes from #297, YAML changes from #299, and existing bug fixes remain in place.