apple / apple/swift-http-api-proposal

Add `HTTPVersion` type

Open Beginner friendly
#180 0 comments 0 reactions 0 assignees View on GitHub
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

Open the contributing 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.