swift-request icon indicating copy to clipboard operation
swift-request copied to clipboard

Support for `Json?`, and `String?` as the response in a `RequestView`

Open carson-katri opened this issue 6 years ago • 3 comments

Currently, RequestView only supports Data? as a return type.

This enhancement is to allow Json? and String? as responses as well by adding more initializers:

RequestView(myRequest) { (data: Data?) in ... }
RequestView(myRequest) { (string: String?) in ... }
RequestView(myRequest) { (json: Json?) in ... }

carson-katri avatar Jul 14 '19 17:07 carson-katri

Codable support is now available in RequestView #4 Json and String are stilled planned.

carson-katri avatar Aug 03 '19 16:08 carson-katri

I'm pushing this to v1.3.0 because it requires more than implementing more initializers...

carson-katri avatar Oct 21 '19 21:10 carson-katri

I'm pushing this again 😄 I want to tag 1.3.0 now so people can use the new error and timeout additions.

carson-katri avatar Jul 27 '20 13:07 carson-katri