LukeMathWalker / pavex

An easy-to-use Rust framework for building robust and performant APIs
https://pavex.dev
Apache License 2.0
1.74k stars 59 forks source link

Add constructor for RequestHead #319

Closed benwis closed 3 months ago

benwis commented 3 months ago

Since RequestHead is non-exhaustive, to construct it I need a constructor in the defining crate.

LukeMathWalker commented 3 months ago

I think we can safely make it exhaustive, I don't see us adding fields at this point.

benwis commented 3 months ago

I think we can safely make it exhaustive, I don't see us adding fields at this point.

Done

LukeMathWalker commented 3 months ago

/ok-to-test sha=26339b7