http-rs / http-types

Common types for HTTP operations
https://docs.rs/http-types
Apache License 2.0
200 stars 84 forks source link

Mark `Method` as non-exhaustive #339

Closed yoshuawuyts closed 3 years ago

yoshuawuyts commented 3 years ago

https://github.com/http-rs/http-types/pull/332 has shown that new HTTP methods can be added by RFC, which is tracked in a registry. We should acknowledge that this value may be extended in the future and mark the Method enum as non_exhaustive.