swift-openapi-urlsession

1.1.0

URLSession transport for Swift OpenAPI Generator.
apple/swift-openapi-urlsession

What's New

1.1.0

2025-04-04T20:01:10Z

What's Changed

SemVer Minor

  • Add support for opting out of streaming HTTP bodies by @hactar in #68

SemVer Patch

Other Changes

  • ci: Move to GitHub Actions by @simonjbeaumont in #57
  • add .editorconfig file by @rnro in #58
  • Aligning semantic version label check name by @FranzBusch in #61
  • Enable MemberImportVisibility check on all targets by @rnro in #62
  • Update release.yml by @FranzBusch in #63
  • CI use 6.1 nightlies by @rnro in #64
  • Rename nightly_6_1 params to nightly_next by @rnro in #65
  • Only apply standard swift settings on valid targets by @rnro in #66
  • Enable macOS CI on merge to main and daily timer by @rnro in #69
  • Enable macOS CI on pull requests by @rnro in #72

New Contributors

Full Changelog: 1.0.2...1.1.0

URLSession Transport for Swift OpenAPI Generator

A client transport that uses the URLSession type from the Foundation framework to perform HTTP operations.

Use the transport with client code generated by Swift OpenAPI Generator.

Supported platforms and minimum versions

macOS Linux, Windows iOS tvOS watchOS visionOS
✅ 10.15+ ✅ 13+ ✅ 13+ ✅ 6+ ✅ 1+

Note: Streaming support only available on macOS 12+, iOS 15+, tvOS 15+, watchOS 8+, and visionOS 1+. For streaming support on Linux, please use the AsyncHTTPClient Transport

Usage

Add the package dependency in your Package.swift:

.package(url: "https://github.com/apple/swift-openapi-urlsession", from: "1.0.0"),

Next, in your target, add OpenAPIURLSession to your dependencies:

.target(name: "MyTarget", dependencies: [
    .product(name: "OpenAPIURLSession", package: "swift-openapi-urlsession"),
]),

Then, to get started, check out URLSessionTransport.

Documentation

To learn more, check out the full documentation.

Description

  • Swift Tools 5.9.0
View More Packages from this Author

Dependencies

Last updated: Fri May 30 2025 05:49:39 GMT-0900 (Hawaii-Aleutian Daylight Time)