Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add caching and additional http headers #196

Merged
merged 7 commits into from
Jul 17, 2021
Merged

Add caching and additional http headers #196

merged 7 commits into from
Jul 17, 2021

Conversation

cbaker6
Copy link
Contributor

@cbaker6 cbaker6 commented Jul 17, 2021

Enables caching of http requests along with adding headers. Caching and additional headers can be set when initializing the SDK. Caching can also be set per request using API.Options.

@codecov
Copy link

codecov bot commented Jul 17, 2021

Codecov Report

Merging #196 (63c1bb9) into main (bc4a793) will increase coverage by 0.16%.
The diff coverage is 90.90%.

Impacted file tree graph

@@            Coverage Diff             @@
##             main     #196      +/-   ##
==========================================
+ Coverage   83.00%   83.17%   +0.16%     
==========================================
  Files          73       74       +1     
  Lines        6915     7079     +164     
==========================================
+ Hits         5740     5888     +148     
- Misses       1175     1191      +16     
Impacted Files Coverage Δ
Sources/ParseSwift/API/URLCache+extensions.swift 70.00% <70.00%> (ø)
Sources/ParseSwift/API/URLSession+extensions.swift 74.78% <74.46%> (-5.43%) ⬇️
...Authentication/Protocols/ParseAuthentication.swift 74.46% <75.00%> (+0.03%) ⬆️
Sources/ParseSwift/API/API+Commands.swift 80.64% <100.00%> (+0.45%) ⬆️
Sources/ParseSwift/API/API.swift 98.31% <100.00%> (+0.05%) ⬆️
Sources/ParseSwift/Objects/ParseInstallation.swift 79.29% <100.00%> (+0.63%) ⬆️
Sources/ParseSwift/Objects/ParseObject.swift 79.38% <100.00%> (+0.65%) ⬆️
Sources/ParseSwift/Objects/ParseUser.swift 82.81% <100.00%> (+1.28%) ⬆️
Sources/ParseSwift/Parse.swift 100.00% <100.00%> (ø)
Sources/ParseSwift/Types/ParseAnalytics.swift 99.16% <100.00%> (+0.05%) ⬆️
... and 6 more

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 bc4a793...63c1bb9. Read the comment docs.

@cbaker6 cbaker6 merged commit 1f0f614 into main Jul 17, 2021
@cbaker6 cbaker6 deleted the caching branch July 17, 2021 21:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant