Kitura / SwiftyRequest

SwiftyRequest is an HTTP networking library built for Swift.
Apache License 2.0
110 stars 19 forks source link

feat: Allow custom EventLoopGroup and Timeout #78

Closed djones6 closed 5 years ago

djones6 commented 5 years ago

This PR:

Also updates the version of async-http-client to 1.0.0 (resolves #79)

Motivation

RestRequest currently uses a global EventLoopGroup containing a single thread. This is sufficient for simple applications, however for highly parallel applications it creates a bottleneck.

Also, there is currently no way to configure the timeout for requests, and HTTPClient's default is to set no timeouts. This could leave an application stuck indefinitely.