# daltoniam/SwiftHTTP

Thin wrapper around NSURLSession in swift. Simplifies HTTP requests.

Repository: https://github.com/daltoniam/SwiftHTTP
Canonical: https://ross.abutalabs.com/products/swifthttp
Language: Swift
License: Apache-2.0
License Family: permissive
Last push: 2021-05-17T18:23:45+00:00

## Health v2 (maintenance only)
Score: 32/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 0, release rhythm 35, longevity 100
- inputs: {"age_days": 4460, "days_push": 1934, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: no_releases
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1890, forks 304 (observed 2026-08-28T04:05:49.523640+00:00)

## What it is
SwiftHTTP is a thin Swift wrapper around NSURLSession that simplifies making HTTP requests with closure-based APIs. It supports parameter encoding, JSON serialization, uploads/downloads with progress, and SSL pinning.

## Use cases
- make simple GET/POST requests in Swift
- upload files with progress callbacks
- download files to disk
- serialize parameters into query strings or JSON bodies
- add custom headers to requests
- pin SSL certificates for secure connections

## When to choose
- you want a lightweight, concise HTTP client in Swift without heavy dependencies
- you need simple closure-based request APIs with queue support
- you need basic upload/download with progress handling

## When to avoid
- you need async/await or modern Swift concurrency APIs
- you want a actively maintained library with frequent updates (last release 2021)
- you need advanced features like interceptors or streaming responses

## Facets
- artifact type: library
- maturity: maintenance
- function: http-client, serialization
- domain: web-development, developer-tools, apis
- platform: -
- tags: nsurlsession, http-requests, swift-wrapper, file-upload, ssl-pinning, swift, ios, macos

## Member repositories
- daltoniam/SwiftHTTP (main) score 32

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:05:49.523640+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T03:13:01.345522+00:00, confidence not recorded.
  - readme: https://github.com/daltoniam/SwiftHTTP (fetched 2026-08-28T04:05:49.523640+00:00, sha 568166eef832)
- Data as of 2026-08-30T08:39:29.467469+00:00.
