github.com/immobiliare/RealHTTP

RealHTTP

Lightweight yet powerful async-based HTTP library, powering millions of requests a month in our apps.

Maintained at Immobiliare·Swift·since 2021

In one look

let todo = try await HTTPRequest("https://example.com/todos/1")
    .fetch(Todo.self)

Every app ends up writing the same networking layer twice: once quickly, then again properly when retries, stubs and error handling stop fitting. We wanted one place where a request is described declaratively, the client owns the transport, and testing does not require a running backend.

What it does

  • Async by design

    Requests and responses built around async/await, with typed decoding on the way out.

  • Retry and validation built in

    Retry policies, validation and error mapping live in the request definition, not scattered across call sites.

  • Tests without a backend

    A stubber replays fixtures, so UI and unit tests never touch the network.