Git Product home page Git Product logo

alamofire-synchronous's People

Contributors

closure11 avatar dalodd avatar eduardbosch avatar ened avatar gzaccaroni avatar yanniks avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

alamofire-synchronous's Issues

Problem install pod

I have insert in my podfile both "Alamofire" and "Alamofire-Synchronous":
pod 'Alamofire', '> 4.0'
pod 'Alamofire-Synchronous', '
> 4.0'

When i try to install the podfile, I'll give this error:
"[!] Unable to satisfy the following requirements:

  • Alamofire-Synchronous (~> 4.0) required by Podfile

None of your spec sources contain a spec satisfying the dependency: Alamofire-Synchronous (~> 4.0).

You have either:

  • out-of-date source repos which you can update with pod repo update.
  • mistyped the name or version.
  • not added the source repo that hosts the Podspec to your Podfile.

Note: as of CocoaPods 1.0, pod repo update does not happen on pod install by default."

I've also update CocoaPods to last version.

Has anyone encountered the same problem?

使用中 主线程卡死

作者你好,
我在使用的时候,不管是放在主线程中还是回调中,都会导致主线程以及界面卡死,而且一直返回不了数据,请问你在使用的过程中遇到这样的问题吗?
我用的是Swift2.1 Xcode7.1.1 iOS9.1
谢谢!

Create a Pod Namespace for the extension

it would be fun to have a way to not always use the extension in a given solution.

also we didn't find a way to use the pods without copying the code in the solution...

Getting and cancelling Requests

Maybe I'm missing something, but is there an option to perform the operations with Alamofire-Synchronous while getting the request variable to store it?

I'm looking to cancel the request (or all of the current requests) but I can't store the request as I always need to get the response to perform it synchronously.

How would you just grab and store the request, or if not is there a way to cancel the request?

upload request

Hi,

I would like to ask you if is possible to add upload request synchronous please?

Alamofire.upload(data, to: url)

Thank you,
Michal

Expression type 'DataResponse<Any>' is ambiguous without more context

I switched to Xcode8 / Swift3 / Alamofire4 and get this compilation error when call responseJSON()

Expression type 'DataResponse' is ambiguous without more context

let parameters:Parameters = [
  "userName": user,
  "passwordHash": passHash,
  "appVersion": "MobilePrototype1"
]

let response = Alamofire
  .request(loginServiceAddress, method: .post, parameters: parameters, encoding: .JSONEncoding.default)
  .validate()
  .responseJSON()

Cannot call value of non-function type 'HTTPURLResponse?'

Hi,

I found this problem now: Alamofire+Synchronous.swift:68:24: Cannot call value of non-function type 'HTTPURLResponse?'

public func responseData() -> DataResponse<Data> {
        return response(responseSerializer: DataRequest.dataResponseSerializer())
    }
public func responseJSON(_ options: JSONSerialization.ReadingOptions = .allowFragments) -> DataResponse<Any> {
        return response(responseSerializer: DataRequest.jsonResponseSerializer(options: options))
    }
public func responseString(_ encoding: String.Encoding? = nil) -> DataResponse<String> {
        return response(responseSerializer: DataRequest.stringResponseSerializer(encoding: encoding))
    }
public func responsePropertyList(_ options: PropertyListSerialization.ReadOptions = PropertyListSerialization.ReadOptions()) -> DataResponse<Any> {
        return response(responseSerializer: DataRequest.propertyListResponseSerializer(options: options))
    }
public func responseData() -> DownloadResponse<Data> {
        return response(responseSerializer: DownloadRequest.dataResponseSerializer())
    }
public func responseJSON(_ options: JSONSerialization.ReadingOptions = .allowFragments) -> DownloadResponse<Any> {
        return response(responseSerializer: DownloadRequest.jsonResponseSerializer(options: options))
    }
public func responseString(_ encoding: String.Encoding? = nil) -> DownloadResponse<String> {
        return response(responseSerializer: DownloadRequest.stringResponseSerializer(encoding: encoding))
    }
public func responsePropertyList(_ options: PropertyListSerialization.ReadOptions = PropertyListSerialization.ReadOptions()) -> DownloadResponse<Any> {
        return response(responseSerializer: DownloadRequest.propertyListResponseSerializer(options: options))
    }

Swift 3 - Extra argument in call ?

Hello,

I have a little problem with Alamofire-Synchronous..

1/ To use this library in my project, i drag and drop "Alamofire+Synchronous.swift" to the project tree
2/ When i want to use, I have a error "Extra argument in call"

My code :

let Paramètres = [ "Login": textfieldLogin.text!, "Password" : textfieldMotDePasse.text! ] let recupJsonSync = Alamofire.request(method: .POST, "http://www.myurl.com/api/login", parameters: Paramètres).responseJSON()

Have you an idea for solve my problem ?

Thank you for your help :)

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.