zacharygolba / via

A multi-threaded async web framework for people who appreciate simplicity.
Apache License 2.0
1 stars 0 forks source link

refactor: prepare req/res body modules for extensibility #9

Closed zacharygolba closed 1 month ago

zacharygolba commented 2 months ago

A work in progress PR that refactors request and response body types to share code when necessary. This refactor also includes a directory structure that should allow for extensibility in the near and long-term future. This includes discrete stream types that either include or filter trailers from request bodies. This implies a potential name change from .into_stream to .into_data_stream and .into_stream where the latter includes trailers.

zacharygolba commented 2 months ago

Once safety comments are added we can merge this into #3, provide https and http2 feature flags, write some basic documention, add a some tests and call it version 0.1.

zacharygolba commented 1 month ago

Considering that the remainder of this work here is in #11. It makes sense to me to merge this in anticipation for #11 making it's way to #3 today.