carson-katri / carson-katri/swift-request

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

Open
#1 3 comments 0 reactions 1 assignee Claimed by @carson-katri View on GitHub
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

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.