apple / swift-http-types

Version-independent HTTP currency types for Swift
Apache License 2.0
902 stars 47 forks source link

Make `Status` and `Method` Directly Codable #51

Open jsonfry opened 5 months ago

jsonfry commented 5 months ago

I'm working a PR for Swift AWS Lambda Events to adopt Swift HTTP Types.

Would it be acceptable to add Codable conformance directly to HTTPResponse.Status and HTTPRequest.Method to better support this / would you welcome a PR for this?

guoye-zhang commented 5 months ago

Yeah absolutely, thanks!