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

Add trillium::Conn::response_body() to borrow the response body #382

Merged
merged 1 commit into from
Oct 16, 2023

Conversation

joshtriplett
Copy link
Collaborator

trillium_http::Conn supports returning a borrow of the response body,
but trillium:Conn doesn't have a corresponding method.

This is useful for examining a response body non-destructively without
having to take it and re-set it afterwards.

trillium_http::Conn supports returning a borrow of the response body,
but trillium:Conn doesn't have a corresponding method.

This is useful for examining a response body non-destructively without
having to take it and re-set it afterwards.
@jbr
Copy link
Contributor

jbr commented Oct 16, 2023

Seems reasonable to me. Thanks!

@jbr jbr merged commit bc28015 into trillium-rs:main Oct 16, 2023
5 of 18 checks passed
@joshtriplett joshtriplett deleted the body-borrow branch October 17, 2023 01:48
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