apple / apple/swift-http-api-proposal
Add `HTTPVersion` type
Open
Beginner friendly
kind/feature
- Dominant language
- Swift
- Stars
- 66
- Forks
- 21
- Avg merge
- 7h 39m
- Merged PRs (30d)
- 2
Description
We should provide an `HTTPVersion` enum that can be used whenever exposing the protocol is required (http/1.1, http/2, http/3).
This was added to the `NIOHTTPServer` in https://github.com/swift-server/swift-http-server/pull/92 but should be upstreamed to the `HTTPServer` abstract API.
Contributor guide
Research direction
Review the HTTPVersion implementation added to NIOHTTPServer in linked pull request #92, then compare it with the HTTPServer abstract API. Add the enum upstream for HTTP/1.1, HTTP/2, and HTTP/3, and verify that protocol exposure points can use it.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- swift
- Domain
- api
- Issue type
- Feature
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Quiet
- Clarity
- Mostly clear
- Newbie friendliness
- 68/100