TinyNetworking
TinyNetworking copied to clipboard
🌩 Simple HTTP network abstraction layer written in Swift
I would like to post json data in http body, however, I can't use set destination .httpBody.
Would be great to have a code coverage label in the README. https://codecov.io/github/jdisho/TinyNetworking?branch=master
From my side, i can see it does not support POST method with data-binary. For example ``` curl 'http://text.url' \ -H 'content-type: application/json' \ --data-binary '{"category_ids":["4a2788f8-e825-4d36-9894-efd4baf1cfae","9daef0d7-bf3c-4f50-921d-8e818c60fe61","161d9be2-e909-4326-8c2c-35ed71fb460b"]}' \ --compressed ``` Any...
```swift tinyNetworking.reactive.request(resource: .photo(id: 123)).start { event in switch event { case let .value(response): // Do something with the response. case let .failed(error): // Do something with the error. default: break...