mirror of
https://github.com/apple/swift-http-structured-headers
synced 2026-11-24 04:37:50 +00:00
Drop Swift 6.0 (#78)
Motivation: Swift 6.0 is no longer supported, we should bump the tools version and remove it from our CI. Modifications: * Bump the Swift tools version to Swift 6.1 * Remove Swift 6.0 jobs where appropriate in main.yml, pull_request.yml Result: Code reflects our support window.
This commit is contained in:
1 parent
45cfa7490a
commit
933538faa4
6 files changed
+1
-13
No files matched your search
@@ -263,12 +263,10 @@ extension _StructuredFieldEncoder: SingleValueEncodingContainer {
|
||||
try self._encodeFixedWidthInteger(value)
|
||||
}
|
||||
|
||||
#if compiler(>=6.0)
|
||||
@available(macOS 15.0, iOS 18.0, watchOS 11.0, tvOS 18.0, visionOS 2.0, *)
|
||||
func encode(_ value: Int128) throws {
|
||||
try self._encodeFixedWidthInteger(value)
|
||||
}
|
||||
#endif
|
||||
|
||||
func encode(_ value: UInt) throws {
|
||||
try self._encodeFixedWidthInteger(value)
|
||||
@@ -290,12 +288,10 @@ extension _StructuredFieldEncoder: SingleValueEncodingContainer {
|
||||
try self._encodeFixedWidthInteger(value)
|
||||
}
|
||||
|
||||
#if compiler(>=6.0)
|
||||
@available(macOS 15.0, iOS 18.0, watchOS 11.0, tvOS 18.0, visionOS 2.0, *)
|
||||
func encode(_ value: UInt128) throws {
|
||||
try self._encodeFixedWidthInteger(value)
|
||||
}
|
||||
#endif
|
||||
|
||||
func encode(_ data: Data) throws {
|
||||
let encoded = data.base64EncodedString()
|
||||
|
||||
Reference in new issue
Block a user