hyperium / http

Rust HTTP types
Apache License 2.0
1.16k stars 291 forks source link

Audit the use of unsafe in method.rs #410

Closed sbosnick closed 4 years ago

sbosnick commented 4 years ago

Refactors the supporting types for Method to extract the uses of unsafe into a smaller leaf sub-module (called extension) that encapsulates these two uses of unsafe into a safe abstraction. Documents the invariants of the safe abstraction that ensure that the uses of unsafe are sound.