Closed carson-katri closed 3 years ago
Merging #34 into master will increase coverage by
2.70%
. The diff coverage is92.57%
.
@@ Coverage Diff @@
## master #34 +/- ##
==========================================
+ Coverage 85.69% 88.39% +2.70%
==========================================
Files 23 25 +2
Lines 748 948 +200
==========================================
+ Hits 641 838 +197
- Misses 107 110 +3
Impacted Files | Coverage Δ | |
---|---|---|
Sources/Request/Request/Extra/RequestChain.swift | 100.00% <ø> (ø) |
|
Sources/Request/Request/Request+Combine.swift | 83.33% <83.33%> (ø) |
|
Tests/RequestTests/RequestTests.swift | 96.90% <95.69%> (+3.36%) |
:arrow_up: |
...s/Request/Request/Extra/RequestGroup+Combine.swift | 100.00% <100.00%> (ø) |
|
Sources/Request/Request/Extra/RequestGroup.swift | 100.00% <100.00%> (ø) |
|
Sources/Request/Request/Request.swift | 93.10% <100.00%> (+0.05%) |
:arrow_up: |
Sources/Request/Request/RequestParams/Body.swift | 100.00% <0.00%> (ø) |
Continue to review full report at Codecov.
Legend - Click here to learn more
Δ = absolute <relative> (impact)
,ø = not affected
,? = missing data
Powered by Codecov. Last update 703c333...ec1c9c0. Read the comment docs.
This PR makes
Request
aPublisher
. This allows you to do the following:instead of:
You can use Combine to apply all sorts of operations to the
Request
:Or, even more concisely:
There are also
stringPublisher
andjsonPublisher
, which publisher those respective types.RequestGroup
also conforms toPublisher
: