19 lines
796 B
Swift
19 lines
796 B
Swift
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"
|
|
]
|
|
}
|