swift-server / swift-server/async-http-client

provide information about various timings (queue, connect, ...) to user via delegate (or otherwise)

Open
#868 6 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Swift
Stars
1.1k
Forks
156
PR merge metrics
No merged PRs in 30d

Description

With AsyncHTTPClient, the user currently struggles to calculate some timings. For example what's impossible to calculate accurately at the moment is:

  • How long did this request spend in the connection pool queue
  • How long did it take to make a connection (if one didn't already exist)
  • How long did it take to send the request
  • DNS timings

These should be available to a user.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by tracing the AsyncHTTPClient request lifecycle and reviewing its existing delegate APIs. Determine how queue, connection, request-send, and DNS phases are represented, then define an API that exposes those timings to users. Done means users can obtain accurate values for each applicable phase.

Written by the indexing model from the issue text.

Assessment

Tech stack
swift
Domain
networking, observability
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.