GithubHelp home page GithubHelp logo

codecat15 / httputility Goto Github PK

View Code? Open in Web Editor NEW
36.0 3.0 12.0 132 KB

HttpUtility is an open source MIT license project which is helpful in making HTTP requests and returns a decoded object from server. Right now this utility only parses JSON.

License: MIT License

Objective-C 1.54% Swift 79.14% Ruby 19.32%
urlsession urlrequest request response swift xcode api json encodable decodable

httputility's Issues

Multiple image upload

The utility should be able to upload multiple images parallelly and must return the URL link of those images to the end-user.

The images can be uploaded in multiform, byte array

Before uploading, the developer can select compression if they need to compress the image before sending it to the server.

SSL Pinning

The user should be able to add a configuration with the details of SSL pinning to the utility something like this

let utility = HttpUtility.shared
utility.sslConfiguration = HUSSLConfiguration(some-ssl-details)

How to return result or response to calling functinon?

I want to return the response from API to where it is called from. like this:

case .success(let driver):
                
            // code to handle the response
//                print("DRIVER: \(String(describing: driver))")
               
                return driver

How can I do such return?

Or any other work around?

I need to have all data in driver when I do:

driver = Driver().getDriver(id)

How to return from success closure?

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.