apple / apple/swift-http-api-proposal
Explore how developers can access implementation specific context of the request/response
Open
http-client
http-server
kind/feature
status/needs-design
- Dominant language
- Swift
- Stars
- 66
- Forks
- 21
- Avg merge
- 7h 39m
- Merged PRs (30d)
- 2
Description
Our protocols provide an implementation agnostic way for users to interact with HTTP clients and servers. However, sometimes it is important for users to access implementation specific request/response related context. Let's explore how we want developers to access this context.
A few alternatives that we discussed so far:
1. Use task locals that can be used in the client `responseHandler` or server `requestHandler`.
2. Provide a punch-through existential on the request/response context to that developers can cast to specific implementations.
Contributor guide
Assessment
This issue has not been assessed yet.