mirror of
https://github.com/RevenueCat/purchases-ios
synced 2026-11-11 22:55:55 +05:45
feat(remote-config): support RC Container format in network stack and use for remote-config request (#7037)
* feat(remote-config): request RC Container format * fix(remote-config): handle no content responses * chore(remote-config): allow snapshot todo * fix(remote-config): disable response verification * chore(remote-config): document disabled signing * refactor(remote-config): parse RC containers in HTTP stack
This commit is contained in:
15 files changed
+386
-111
No files matched your search
@@ -18,6 +18,7 @@ enum HTTPStatusCode {
|
||||
|
||||
case success
|
||||
case createdSuccess
|
||||
case noContent
|
||||
case redirect
|
||||
case notModified
|
||||
case temporaryRedirect
|
||||
@@ -34,6 +35,7 @@ enum HTTPStatusCode {
|
||||
private static let knownStatus: Set<HTTPStatusCode> = [
|
||||
.success,
|
||||
.createdSuccess,
|
||||
.noContent,
|
||||
.redirect,
|
||||
.notModified,
|
||||
.temporaryRedirect,
|
||||
@@ -57,6 +59,7 @@ extension HTTPStatusCode: RawRepresentable {
|
||||
switch self {
|
||||
case .success: return 200
|
||||
case .createdSuccess: return 201
|
||||
case .noContent: return 204
|
||||
case .redirect: return 300
|
||||
case .notModified: return 304
|
||||
case .temporaryRedirect: return 307
|
||||
|
||||
Reference in new issue
Block a user