🍦 SwiftServe Get

Menu / network.http-client

Can Swift packages do http client?

also known as: http requests · rest client · networking

PackageiOSmacOSwatchOStvOSvisionOSLinuxCatalyst
async-http-client full menu as of 1.35.0
Details

serves it · confidence 0.90 · as of 1.35.0

serves it · confidence 0.90 · as of 1.35.0

serves it · confidence 0.70 · as of 1.35.0

  • HTTPClient
    Sources/AsyncHTTPClient/HTTPClient.swift:70
    View the line on GitHub →
    Public surface is unconditional on watchOS per digest; real-world socket availability for SwiftNIO-based clients on watchOS is not verifiable from this surface, so confidence is reduced.
  • HTTPClient.execute
    Sources/AsyncHTTPClient/AsyncAwait/HTTPClient+execute.swift:39
    View the line on GitHub →
  • HTTPClientRequest
    Sources/AsyncHTTPClient/AsyncAwait/HTTPClientRequest.swift:39
    View the line on GitHub →

serves it · confidence 0.90 · as of 1.35.0

serves it · confidence 0.90 · as of 1.35.0

serves it · confidence 0.90 · as of 1.35.0

serves it · confidence 0.90 · as of 1.35.0

Alamofire as of 5.12.0
Details

serves it · confidence 0.90 · as of 5.12.0

serves it · confidence 0.90 · as of 5.12.0

serves it · confidence 0.85 · as of 5.12.0

serves it · confidence 0.85 · as of 5.12.0

serves it · confidence 0.85 · as of 5.12.0

  • Session
    Source/Core/Session.swift:30
    View the line on GitHub →
    the request-making core
  • compiles for visionOS — Xcode 26.6 (17F113), XROS26.5.sdk, scheme Alamofire
?

not verified yet · confidence 0.25 · as of 5.12.0

  • Alamofire is URLSession-based; Linux is explicitly unsupported per the project — but no source fence proves it

serves it · confidence 0.80 · as of 5.12.0

Moya as of 15.0.3
Details

serves it · confidence 0.80 · as of 15.0.3

serves it · confidence 0.80 · as of 15.0.3

serves it · confidence 0.75 · as of 15.0.3

serves it · confidence 0.75 · as of 15.0.3

not served here · confidence 0.85 · as of 15.0.3

  • does not compile for visionOS (Xcode 26.6 (17F113), XROS26.5.sdk): .dd/SourcePackages/checkouts/Alamofire/Source/Protected.swift:127:15: error: cannot find 'lock' in scope — the same commit builds for iOS, so the fence is real
?

not verified yet · confidence 0.20 · as of 15.0.3

  • rides on Alamofire, which doesn't do Linux

serves it · confidence 0.75 · as of 15.0.3

oauthswift as of 2.2.0
Details

serves it · confidence 0.85 · as of 2.2.0

  • OAuthSwiftClient
    Sources/OAuthSwiftClient.swift:17
    View the line on GitHub →
    Signed HTTP client with get/post/put/delete/patch verbs; unconditional decl
  • OAuthSwiftClient.request
    Sources/OAuthSwiftClient.swift:72
    View the line on GitHub →
    Generic request entry point
  • OAuthSwiftHTTPRequest
    Sources/OAuthSwiftHTTPRequest.swift:18
    View the line on GitHub →
    URLSession-backed request type with configurable URLSessionFactory

serves it · confidence 0.85 · as of 2.2.0

serves it · confidence 0.70 · as of 2.2.0

  • OAuthSwiftClient
    Sources/OAuthSwiftClient.swift:17
    View the line on GitHub →
    Unconditional decl, digest-present on watchOS
  • OAuthSwiftHTTPRequest
    Sources/OAuthSwiftHTTPRequest.swift:18
    View the line on GitHub →
    Unconditional decl, digest-present on watchOS
  • OAuthViewController
    #if !(os(iOS) || os(tvOS)) && os(watchOS)
    Sources/Handler/OAuthWebViewController.swift:16
    View the line on GitHub →
    Explicit watchOS branch elsewhere in the module shows watchOS is a compile target the authors handled

serves it · confidence 0.80 · as of 2.2.0

  • OAuthSwiftClient
    Sources/OAuthSwiftClient.swift:17
    View the line on GitHub →
    Unconditional decl, digest-present on tvOS
  • OAuthSwiftHTTPRequest
    Sources/OAuthSwiftHTTPRequest.swift:18
    View the line on GitHub →
    Unconditional decl, digest-present on tvOS
  • OAuthViewController
    #if os(iOS) || os(tvOS)
    Sources/Handler/OAuthWebViewController.swift:13
    View the line on GitHub →
    Explicit tvOS branch elsewhere in the module shows tvOS is a handled compile target
?

not verified yet · confidence 0.40 · as of 2.2.0

  • OAuthSwiftClient
    Sources/OAuthSwiftClient.swift:17
    View the line on GitHub →
    Unconditional decl, digest-present on visionOS
  • OAuthViewController
    #if os(iOS) || os(tvOS)
    Sources/Handler/OAuthWebViewController.swift:13
    View the line on GitHub →
    No typealias branch covers visionOS while the unconditional OAuthWebViewController subclasses it — a visionOS build of the whole module (and thus this capability) is doubtful at 2.2.0; status left unknown
?

not verified yet · confidence 0.40 · as of 2.2.0

  • OAuthSwiftClient
    Sources/OAuthSwiftClient.swift:17
    View the line on GitHub →
    Unconditional decl, digest-present on linux; Package.swift adds swift-crypto under os(Linux) showing Linux intent
  • OAuthViewController
    #if os(iOS) || os(tvOS)
    Sources/Handler/OAuthWebViewController.swift:13
    View the line on GitHub →
    No branch covers linux while unconditional OAuthWebViewController subclasses OAuthViewController, and Sources lack a FoundationNetworking import for URLSession — Linux build unverified; status left unknown

serves it · confidence 0.80 · as of 2.2.0

  • OAuthSwiftClient
    Sources/OAuthSwiftClient.swift:17
    View the line on GitHub →
    Unconditional decl, digest-present on macCatalyst
  • ASWebAuthenticationURLHandler
    #if targetEnvironment(macCatalyst) || os(iOS)
    Sources/Handler/ASWebAuthenticationURLHandler.swift:14
    View the line on GitHub →
    Explicit macCatalyst guard elsewhere in the module shows Catalyst is a handled compile target

✓ serves it · ◐ with conditions · ✕ not served (proven) · ? not verified yet — hover any verdict for the receipt, click to pin it