apple / apple/swift-http-api-proposal

Explore how developers can access implementation specific context of the request/response

Open
#5 1 comment 0 reactions 0 assignees View on GitHub
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

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.