- Notifications
You must be signed in to change notification settings - Fork40
URLSession transport for Swift OpenAPI Generator.
License
apple/swift-openapi-urlsession
Folders and files
| Name | Name | Last commit message | Last commit date | |
|---|---|---|---|---|
Repository files navigation
A client transport that uses theURLSession type from theFoundation framework to perform HTTP operations.
Use the transport with client code generated bySwift OpenAPI Generator.
| 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 theAsyncHTTPClient Transport
Add the package dependency in yourPackage.swift:
.package(url:"https://github.com/apple/swift-openapi-urlsession", from:"1.0.0"),
Next, in your target, addOpenAPIURLSession to your dependencies:
.target(name:"MyTarget", dependencies:[.product(name:"OpenAPIURLSession",package:"swift-openapi-urlsession"),]),
Then, to get started, check outURLSessionTransport.
To learn more, check out the fulldocumentation.
About
URLSession transport for Swift OpenAPI Generator.
Topics
Resources
License
Code of conduct
Contributing
Security policy
Uh oh!
There was an error while loading.Please reload this page.
Stars
Watchers
Forks
Uh oh!
There was an error while loading.Please reload this page.