apple / apple/swift-http-api-proposal
HTTPServerRequestHandler.handle shouldn't throw
Open
http-server
- Dominant language
- Swift
- Stars
- 66
- Forks
- 21
- Avg merge
- 7h 39m
- Merged PRs (30d)
- 2
Description
Errors from handling a single request can't fail the entire HTTP server, so the error thrown here is ignored. We should instead force users to catch and handle the error.
Contributor guide
Research direction
Start by reading the proposal text around HTTPServerRequestHandler.handle and the nine-comment discussion. Confirm the intended error-propagation contract and update the proposal's API wording so per-request failures cannot terminate the server and callers must handle errors.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- swift
- Domain
- api, backend
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Quiet
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100