Git Product home page Git Product logo

swift-openapi-urlsession's Introduction

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 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.

swift-openapi-urlsession's People

Contributors

czechboy0 avatar simonjbeaumont avatar mahdibm avatar paraipan9 avatar denil-ct avatar glbrntt avatar heckj avatar yim-lee avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.