Repository navigation
Foundation macOS xcode27.3 b2
Alex Soto edited this page Nov 24, 2026
·
2 revisions
#Foundation.framework https://github.com/dotnet/macios/pull/27400
diff -ruN /Applications/Xcode_27.3.0-beta1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/Foundation.framework/Headers/Foundation.apinotes /Applications/Xcode_27.3.0-beta2.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/Foundation.framework/Headers/Foundation.apinotes
--- /Applications/Xcode_27.3.0-beta1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/Foundation.framework/Headers/Foundation.apinotes 2026-11-04 03:32:07
+++ /Applications/Xcode_27.3.0-beta2.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/Foundation.framework/Headers/Foundation.apinotes 2026-11-23 18:18:33
@@ -1271,6 +1271,8 @@
SwiftName: URLSession.ResponseDisposition
- Name: NSURLSessionTaskMetricsDomainResolutionProtocol
SwiftName: URLSessionTaskMetrics.DomainResolutionProtocol
+- Name: NSURLSessionTaskMetricsEarlyDataStatus
+ SwiftName: URLSessionTaskMetrics.EarlyDataStatus
- Name: NSURLSessionTaskMetricsResourceFetchType
SwiftName: URLSessionTaskMetrics.ResourceFetchType
- Name: NSURLSessionWebSocketMessageType
diff -ruN /Applications/Xcode_27.3.0-beta1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSURLSession.h /Applications/Xcode_27.3.0-beta2.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSURLSession.h
--- /Applications/Xcode_27.3.0-beta1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSURLSession.h 2026-11-04 03:32:07
+++ /Applications/Xcode_27.3.0-beta2.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSURLSession.h 2026-11-23 18:18:33
@@ -1979,6 +1979,18 @@
NSURLSessionTaskMetricsDomainResolutionProtocolHTTPS, /* Resolution used DNS over HTTPS. */
} API_AVAILABLE(macos(11.0), ios(14.0), watchos(7.0), tvos(14.0));
+/// Whether a request was sent in TLS early data, and whether the server accepted it.
+typedef NS_ENUM(NSInteger, NSURLSessionTaskMetricsEarlyDataStatus) {
+ /// The request wasn't sent in early data.
+ NSURLSessionTaskMetricsEarlyDataStatusNotAttempted = 0,
+ /// The request was sent in early data, but the server didn't accept it.
+ ///
+ /// Either the server rejected early data, or the handshake never completed.
+ NSURLSessionTaskMetricsEarlyDataStatusAttempted = 1,
+ /// The request was sent in early data, and the server accepted it.
+ NSURLSessionTaskMetricsEarlyDataStatusAttemptedAndAccepted = 2,
+} API_AVAILABLE(anyappleos(27.3));
+
/// An object that encapsulates the performance metrics collected by the URL Loading System during the execution of a session task.
///
/// Each ``URLSessionTaskTransactionMetrics`` object consists of a ``request`` and ``response`` property, corresponding to the request and response of the corresponding task. It also contains temporal metrics, starting with ``fetchStartDate`` and ending with ``responseEndDate``, as well as other characteristics like ``networkProtocolName`` and ``resourceFetchType``.
@@ -2155,6 +2167,11 @@
/// DNS protocol used for domain resolution.
@property (readonly) NSURLSessionTaskMetricsDomainResolutionProtocol domainResolutionProtocol API_AVAILABLE(macos(11.0), ios(14.0), watchos(7.0), tvos(14.0));
+
+/// Whether the request was sent in TLS early data, and whether the server accepted it.
+///
+/// Early data isn't supported in the classic loading mode, where this value is always `NSURLSessionTaskMetricsEarlyDataStatusNotAttempted`.
+@property (readonly) NSURLSessionTaskMetricsEarlyDataStatus earlyDataStatus API_AVAILABLE(anyappleos(27.3));
/// Creates a transaction metrics instance.