Initial project setup - Phases 1-3 complete
This commit is contained in:
18
ProxyCore/Sources/Shared/Constants.swift
Normal file
18
ProxyCore/Sources/Shared/Constants.swift
Normal file
@@ -0,0 +1,18 @@
|
||||
import Foundation
|
||||
|
||||
public enum ProxyConstants {
|
||||
public static let proxyHost = "127.0.0.1"
|
||||
public static let proxyPort: Int = 9090
|
||||
public static let appGroupIdentifier = "group.com.treyt.proxyapp"
|
||||
public static let extensionBundleIdentifier = "com.treyt.proxyapp.PacketTunnel"
|
||||
public static let maxBodySizeBytes = 1_048_576 // 1 MB - truncate larger bodies
|
||||
public static let certificateCacheSize = 500
|
||||
|
||||
public static let httpMethods = ["GET", "POST", "PUT", "PATCH", "DELETE", "HEAD", "OPTIONS"]
|
||||
|
||||
public static let commonHeaders = [
|
||||
"Accept", "Accept-Charset", "Accept-Encoding", "Accept-Language",
|
||||
"Authorization", "Cache-Control", "Connection", "Content-Length",
|
||||
"Content-Type", "Cookie", "Host", "Origin", "Referer", "User-Agent"
|
||||
]
|
||||
}
|
||||
Reference in New Issue
Block a user