apple / apple/swift-http-api-proposal

Feature detection mechanism for HTTPClient

Open
#141 1 comment 0 reactions 0 assignees View on GitHub
http-client status/needs-design
Dominant language
Swift
Stars
66
Forks
21
Avg merge
7h 39m
Merged PRs (30d)
2

Description

The main feature detection mechanism defined in HTTPClient today is the `RequestOptions` protocol which allows each client backend to declare their own capabilities, and allows libraries to require clients with specific capabilities.

However, this approach has limitations of detecting automatic features with no configuration (cookie jar, HSTS upgrades, post-quantum crypto, etc), and runtime behaviors (bidirectional streaming, preserving multi-value header field, etc).

How should we model these features?

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.