Skip to content

feat(server,http1,http2,upgrade): remove body static lifetime constraint#278

Open
Voldemat wants to merge 1 commit intohyperium:masterfrom
Voldemat:master
Open

feat(server,http1,http2,upgrade): remove body static lifetime constraint#278
Voldemat wants to merge 1 commit intohyperium:masterfrom
Voldemat:master

Conversation

@Voldemat
Copy link
Copy Markdown

Before this change, hyper expects body trait implementation to have 'static lifetime, which prevents use cases where one might have StreamBody that references certain state that outlives hyper connection object. This change adds lifetime parameter 'body to varies hyper objects that replaces 'static.

Before this change, hyper expects body trait implementation to have
'static lifetime, which prevents use cases where one might have
StreamBody that references certain state that outlives hyper connection
object. This change adds lifetime parameter 'body to varies hyper
objects that replaces 'static.

Signed-off-by: Vladimir Voitenko <vladimirdev635@gmail.com>
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.

1 participant