BottleRocketStudios / iOS-Hyperspace

An extremely lightweight wrapper around URLSession to make working with APIs a breeze.
Apache License 2.0
47 stars 17 forks source link

Make modifying a network request simpler #43

Closed wmcginty closed 6 years ago

wmcginty commented 6 years ago

I'm currently looking at creating an alternate BackendService which will handle automatically authenticating requests. In order to do this it, it would be good if it were simpler to modify any given NetworkRequest object, without having to know the concrete type.

codecov-io commented 6 years ago

Codecov Report

Merging #43 into release/2.0.0 will increase coverage by 0.19%. The diff coverage is 100%.

Impacted file tree graph

@@                Coverage Diff                @@
##           release/2.0.0      #43      +/-   ##
=================================================
+ Coverage          96.46%   96.66%   +0.19%     
=================================================
  Files                 30       30              
  Lines                989     1048      +59     
=================================================
+ Hits                 954     1013      +59     
  Misses                35       35
Impacted Files Coverage Δ
Tests/NetworkRequestTests.swift 100% <100%> (ø) :arrow_up:
Sources/Hyperspace/Request/NetworkRequest.swift 100% <100%> (ø) :arrow_up:

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 e60e792...2c8e478. Read the comment docs.