carson-katri / carson-katri/swift-request
Support for `Json?`, and `String?` as the response in a `RequestView`
Open
enhancement
- Dominant language
- Swift
- Stars
- 740
- Forks
- 42
- PR merge metrics
- No merged PRs in 30d
Description
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:
```swift
RequestView(myRequest) { (data: Data?) in ... }
RequestView(myRequest) { (string: String?) in ... }
RequestView(myRequest) { (json: Json?) in ... }
```
Contributor guide
Assessment
This issue has not been assessed yet.