Build Information
Failed to build swift-http, reference main (8b5739
), with Swift 6.1 for Wasm on 28 May 2025 16:20:33 UTC.
Build Command
bash -c docker run --pull=always --rm -v "checkouts-4609320-0":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:wasm-6.1-latest swift build --swift-sdk wasm32-unknown-wasi 2>&1
Build Log
206 | public static let requireRecipientValidSince: HttpHeaderKey =
207 | "Require-Recipient-Valid-Since"
/host/spi-builder-workspace/Sources/SwiftHttp/HttpHeaderKey.swift:206:23: warning: static property 'requireRecipientValidSince' is not concurrency-safe because non-'Sendable' type 'HttpHeaderKey' may have shared mutable state; this is an error in the Swift 6 language mode
9 |
10 | /// Type safe header key wrapper
11 | public struct HttpHeaderKey {
| `- note: consider making struct 'HttpHeaderKey' conform to the 'Sendable' protocol
12 |
13 | public var rawValue: String
:
204 | public static let replyBy: HttpHeaderKey = "Reply-By"
205 | public static let replyTo: HttpHeaderKey = "Reply-To"
206 | public static let requireRecipientValidSince: HttpHeaderKey =
| |- warning: static property 'requireRecipientValidSince' is not concurrency-safe because non-'Sendable' type 'HttpHeaderKey' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'requireRecipientValidSince' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
207 | "Require-Recipient-Valid-Since"
208 | public static let resentBcc: HttpHeaderKey = "Resent-Bcc"
/host/spi-builder-workspace/Sources/SwiftHttp/HttpHeaderKey.swift:208:23: warning: static property 'resentBcc' is not concurrency-safe because non-'Sendable' type 'HttpHeaderKey' may have shared mutable state; this is an error in the Swift 6 language mode
9 |
10 | /// Type safe header key wrapper
11 | public struct HttpHeaderKey {
| `- note: consider making struct 'HttpHeaderKey' conform to the 'Sendable' protocol
12 |
13 | public var rawValue: String
:
206 | public static let requireRecipientValidSince: HttpHeaderKey =
207 | "Require-Recipient-Valid-Since"
208 | public static let resentBcc: HttpHeaderKey = "Resent-Bcc"
| |- warning: static property 'resentBcc' is not concurrency-safe because non-'Sendable' type 'HttpHeaderKey' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'resentBcc' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
209 | public static let resentCc: HttpHeaderKey = "Resent-Cc"
210 | public static let resentDate: HttpHeaderKey = "Resent-Date"
/host/spi-builder-workspace/Sources/SwiftHttp/HttpHeaderKey.swift:209:23: warning: static property 'resentCc' is not concurrency-safe because non-'Sendable' type 'HttpHeaderKey' may have shared mutable state; this is an error in the Swift 6 language mode
9 |
10 | /// Type safe header key wrapper
11 | public struct HttpHeaderKey {
| `- note: consider making struct 'HttpHeaderKey' conform to the 'Sendable' protocol
12 |
13 | public var rawValue: String
:
207 | "Require-Recipient-Valid-Since"
208 | public static let resentBcc: HttpHeaderKey = "Resent-Bcc"
209 | public static let resentCc: HttpHeaderKey = "Resent-Cc"
| |- warning: static property 'resentCc' is not concurrency-safe because non-'Sendable' type 'HttpHeaderKey' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'resentCc' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
210 | public static let resentDate: HttpHeaderKey = "Resent-Date"
211 | public static let resentFrom: HttpHeaderKey = "Resent-From"
/host/spi-builder-workspace/Sources/SwiftHttp/HttpHeaderKey.swift:210:23: warning: static property 'resentDate' is not concurrency-safe because non-'Sendable' type 'HttpHeaderKey' may have shared mutable state; this is an error in the Swift 6 language mode
9 |
10 | /// Type safe header key wrapper
11 | public struct HttpHeaderKey {
| `- note: consider making struct 'HttpHeaderKey' conform to the 'Sendable' protocol
12 |
13 | public var rawValue: String
:
208 | public static let resentBcc: HttpHeaderKey = "Resent-Bcc"
209 | public static let resentCc: HttpHeaderKey = "Resent-Cc"
210 | public static let resentDate: HttpHeaderKey = "Resent-Date"
| |- warning: static property 'resentDate' is not concurrency-safe because non-'Sendable' type 'HttpHeaderKey' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'resentDate' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
211 | public static let resentFrom: HttpHeaderKey = "Resent-From"
212 | public static let resentMessageID: HttpHeaderKey = "Resent-Message-ID"
/host/spi-builder-workspace/Sources/SwiftHttp/HttpHeaderKey.swift:211:23: warning: static property 'resentFrom' is not concurrency-safe because non-'Sendable' type 'HttpHeaderKey' may have shared mutable state; this is an error in the Swift 6 language mode
9 |
10 | /// Type safe header key wrapper
11 | public struct HttpHeaderKey {
| `- note: consider making struct 'HttpHeaderKey' conform to the 'Sendable' protocol
12 |
13 | public var rawValue: String
:
209 | public static let resentCc: HttpHeaderKey = "Resent-Cc"
210 | public static let resentDate: HttpHeaderKey = "Resent-Date"
211 | public static let resentFrom: HttpHeaderKey = "Resent-From"
| |- warning: static property 'resentFrom' is not concurrency-safe because non-'Sendable' type 'HttpHeaderKey' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'resentFrom' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
212 | public static let resentMessageID: HttpHeaderKey = "Resent-Message-ID"
213 | public static let resentReplyTo: HttpHeaderKey = "Resent-Reply-To"
/host/spi-builder-workspace/Sources/SwiftHttp/HttpHeaderKey.swift:212:23: warning: static property 'resentMessageID' is not concurrency-safe because non-'Sendable' type 'HttpHeaderKey' may have shared mutable state; this is an error in the Swift 6 language mode
9 |
10 | /// Type safe header key wrapper
11 | public struct HttpHeaderKey {
| `- note: consider making struct 'HttpHeaderKey' conform to the 'Sendable' protocol
12 |
13 | public var rawValue: String
:
210 | public static let resentDate: HttpHeaderKey = "Resent-Date"
211 | public static let resentFrom: HttpHeaderKey = "Resent-From"
212 | public static let resentMessageID: HttpHeaderKey = "Resent-Message-ID"
| |- warning: static property 'resentMessageID' is not concurrency-safe because non-'Sendable' type 'HttpHeaderKey' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'resentMessageID' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
213 | public static let resentReplyTo: HttpHeaderKey = "Resent-Reply-To"
214 | public static let resentSender: HttpHeaderKey = "Resent-Sender"
/host/spi-builder-workspace/Sources/SwiftHttp/HttpHeaderKey.swift:213:23: warning: static property 'resentReplyTo' is not concurrency-safe because non-'Sendable' type 'HttpHeaderKey' may have shared mutable state; this is an error in the Swift 6 language mode
9 |
10 | /// Type safe header key wrapper
11 | public struct HttpHeaderKey {
| `- note: consider making struct 'HttpHeaderKey' conform to the 'Sendable' protocol
12 |
13 | public var rawValue: String
:
211 | public static let resentFrom: HttpHeaderKey = "Resent-From"
212 | public static let resentMessageID: HttpHeaderKey = "Resent-Message-ID"
213 | public static let resentReplyTo: HttpHeaderKey = "Resent-Reply-To"
| |- warning: static property 'resentReplyTo' is not concurrency-safe because non-'Sendable' type 'HttpHeaderKey' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'resentReplyTo' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
214 | public static let resentSender: HttpHeaderKey = "Resent-Sender"
215 | public static let resentTo: HttpHeaderKey = "Resent-To"
/host/spi-builder-workspace/Sources/SwiftHttp/HttpHeaderKey.swift:214:23: warning: static property 'resentSender' is not concurrency-safe because non-'Sendable' type 'HttpHeaderKey' may have shared mutable state; this is an error in the Swift 6 language mode
9 |
10 | /// Type safe header key wrapper
11 | public struct HttpHeaderKey {
| `- note: consider making struct 'HttpHeaderKey' conform to the 'Sendable' protocol
12 |
13 | public var rawValue: String
:
212 | public static let resentMessageID: HttpHeaderKey = "Resent-Message-ID"
213 | public static let resentReplyTo: HttpHeaderKey = "Resent-Reply-To"
214 | public static let resentSender: HttpHeaderKey = "Resent-Sender"
| |- warning: static property 'resentSender' is not concurrency-safe because non-'Sendable' type 'HttpHeaderKey' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'resentSender' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
215 | public static let resentTo: HttpHeaderKey = "Resent-To"
216 | public static let returnPath: HttpHeaderKey = "Return-Path"
/host/spi-builder-workspace/Sources/SwiftHttp/HttpHeaderKey.swift:215:23: warning: static property 'resentTo' is not concurrency-safe because non-'Sendable' type 'HttpHeaderKey' may have shared mutable state; this is an error in the Swift 6 language mode
9 |
10 | /// Type safe header key wrapper
11 | public struct HttpHeaderKey {
| `- note: consider making struct 'HttpHeaderKey' conform to the 'Sendable' protocol
12 |
13 | public var rawValue: String
:
213 | public static let resentReplyTo: HttpHeaderKey = "Resent-Reply-To"
214 | public static let resentSender: HttpHeaderKey = "Resent-Sender"
215 | public static let resentTo: HttpHeaderKey = "Resent-To"
| |- warning: static property 'resentTo' is not concurrency-safe because non-'Sendable' type 'HttpHeaderKey' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'resentTo' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
216 | public static let returnPath: HttpHeaderKey = "Return-Path"
217 | public static let seeAlso: HttpHeaderKey = "See-Also"
/host/spi-builder-workspace/Sources/SwiftHttp/HttpHeaderKey.swift:216:23: warning: static property 'returnPath' is not concurrency-safe because non-'Sendable' type 'HttpHeaderKey' may have shared mutable state; this is an error in the Swift 6 language mode
9 |
10 | /// Type safe header key wrapper
11 | public struct HttpHeaderKey {
| `- note: consider making struct 'HttpHeaderKey' conform to the 'Sendable' protocol
12 |
13 | public var rawValue: String
:
214 | public static let resentSender: HttpHeaderKey = "Resent-Sender"
215 | public static let resentTo: HttpHeaderKey = "Resent-To"
216 | public static let returnPath: HttpHeaderKey = "Return-Path"
| |- warning: static property 'returnPath' is not concurrency-safe because non-'Sendable' type 'HttpHeaderKey' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'returnPath' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
217 | public static let seeAlso: HttpHeaderKey = "See-Also"
218 | public static let sender: HttpHeaderKey = "Sender"
/host/spi-builder-workspace/Sources/SwiftHttp/HttpHeaderKey.swift:217:23: warning: static property 'seeAlso' is not concurrency-safe because non-'Sendable' type 'HttpHeaderKey' may have shared mutable state; this is an error in the Swift 6 language mode
9 |
10 | /// Type safe header key wrapper
11 | public struct HttpHeaderKey {
| `- note: consider making struct 'HttpHeaderKey' conform to the 'Sendable' protocol
12 |
13 | public var rawValue: String
:
215 | public static let resentTo: HttpHeaderKey = "Resent-To"
216 | public static let returnPath: HttpHeaderKey = "Return-Path"
217 | public static let seeAlso: HttpHeaderKey = "See-Also"
| |- warning: static property 'seeAlso' is not concurrency-safe because non-'Sendable' type 'HttpHeaderKey' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'seeAlso' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
218 | public static let sender: HttpHeaderKey = "Sender"
219 | public static let sensitivity: HttpHeaderKey = "Sensitivity"
/host/spi-builder-workspace/Sources/SwiftHttp/HttpHeaderKey.swift:218:23: warning: static property 'sender' is not concurrency-safe because non-'Sendable' type 'HttpHeaderKey' may have shared mutable state; this is an error in the Swift 6 language mode
9 |
10 | /// Type safe header key wrapper
11 | public struct HttpHeaderKey {
| `- note: consider making struct 'HttpHeaderKey' conform to the 'Sendable' protocol
12 |
13 | public var rawValue: String
:
216 | public static let returnPath: HttpHeaderKey = "Return-Path"
217 | public static let seeAlso: HttpHeaderKey = "See-Also"
218 | public static let sender: HttpHeaderKey = "Sender"
| |- warning: static property 'sender' is not concurrency-safe because non-'Sendable' type 'HttpHeaderKey' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'sender' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
219 | public static let sensitivity: HttpHeaderKey = "Sensitivity"
220 | public static let solicitation: HttpHeaderKey = "Solicitation"
/host/spi-builder-workspace/Sources/SwiftHttp/HttpHeaderKey.swift:219:23: warning: static property 'sensitivity' is not concurrency-safe because non-'Sendable' type 'HttpHeaderKey' may have shared mutable state; this is an error in the Swift 6 language mode
9 |
10 | /// Type safe header key wrapper
11 | public struct HttpHeaderKey {
| `- note: consider making struct 'HttpHeaderKey' conform to the 'Sendable' protocol
12 |
13 | public var rawValue: String
:
217 | public static let seeAlso: HttpHeaderKey = "See-Also"
218 | public static let sender: HttpHeaderKey = "Sender"
219 | public static let sensitivity: HttpHeaderKey = "Sensitivity"
| |- warning: static property 'sensitivity' is not concurrency-safe because non-'Sendable' type 'HttpHeaderKey' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'sensitivity' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
220 | public static let solicitation: HttpHeaderKey = "Solicitation"
221 | public static let subject: HttpHeaderKey = "Subject"
/host/spi-builder-workspace/Sources/SwiftHttp/HttpHeaderKey.swift:220:23: warning: static property 'solicitation' is not concurrency-safe because non-'Sendable' type 'HttpHeaderKey' may have shared mutable state; this is an error in the Swift 6 language mode
9 |
10 | /// Type safe header key wrapper
11 | public struct HttpHeaderKey {
| `- note: consider making struct 'HttpHeaderKey' conform to the 'Sendable' protocol
12 |
13 | public var rawValue: String
:
218 | public static let sender: HttpHeaderKey = "Sender"
219 | public static let sensitivity: HttpHeaderKey = "Sensitivity"
220 | public static let solicitation: HttpHeaderKey = "Solicitation"
| |- warning: static property 'solicitation' is not concurrency-safe because non-'Sendable' type 'HttpHeaderKey' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'solicitation' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
221 | public static let subject: HttpHeaderKey = "Subject"
222 | public static let summary: HttpHeaderKey = "Summary"
/host/spi-builder-workspace/Sources/SwiftHttp/HttpHeaderKey.swift:221:23: warning: static property 'subject' is not concurrency-safe because non-'Sendable' type 'HttpHeaderKey' may have shared mutable state; this is an error in the Swift 6 language mode
9 |
10 | /// Type safe header key wrapper
11 | public struct HttpHeaderKey {
| `- note: consider making struct 'HttpHeaderKey' conform to the 'Sendable' protocol
12 |
13 | public var rawValue: String
:
219 | public static let sensitivity: HttpHeaderKey = "Sensitivity"
220 | public static let solicitation: HttpHeaderKey = "Solicitation"
221 | public static let subject: HttpHeaderKey = "Subject"
| |- warning: static property 'subject' is not concurrency-safe because non-'Sendable' type 'HttpHeaderKey' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'subject' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
222 | public static let summary: HttpHeaderKey = "Summary"
223 | public static let supersedes: HttpHeaderKey = "Supersedes"
/host/spi-builder-workspace/Sources/SwiftHttp/HttpHeaderKey.swift:222:23: warning: static property 'summary' is not concurrency-safe because non-'Sendable' type 'HttpHeaderKey' may have shared mutable state; this is an error in the Swift 6 language mode
9 |
10 | /// Type safe header key wrapper
11 | public struct HttpHeaderKey {
| `- note: consider making struct 'HttpHeaderKey' conform to the 'Sendable' protocol
12 |
13 | public var rawValue: String
:
220 | public static let solicitation: HttpHeaderKey = "Solicitation"
221 | public static let subject: HttpHeaderKey = "Subject"
222 | public static let summary: HttpHeaderKey = "Summary"
| |- warning: static property 'summary' is not concurrency-safe because non-'Sendable' type 'HttpHeaderKey' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'summary' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
223 | public static let supersedes: HttpHeaderKey = "Supersedes"
224 | public static let tLSReportDomain: HttpHeaderKey = "TLS-Report-Domain"
/host/spi-builder-workspace/Sources/SwiftHttp/HttpHeaderKey.swift:223:23: warning: static property 'supersedes' is not concurrency-safe because non-'Sendable' type 'HttpHeaderKey' may have shared mutable state; this is an error in the Swift 6 language mode
9 |
10 | /// Type safe header key wrapper
11 | public struct HttpHeaderKey {
| `- note: consider making struct 'HttpHeaderKey' conform to the 'Sendable' protocol
12 |
13 | public var rawValue: String
:
221 | public static let subject: HttpHeaderKey = "Subject"
222 | public static let summary: HttpHeaderKey = "Summary"
223 | public static let supersedes: HttpHeaderKey = "Supersedes"
| |- warning: static property 'supersedes' is not concurrency-safe because non-'Sendable' type 'HttpHeaderKey' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'supersedes' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
224 | public static let tLSReportDomain: HttpHeaderKey = "TLS-Report-Domain"
225 | public static let tLSReportSubmitter: HttpHeaderKey = "TLS-Report-Submitter"
/host/spi-builder-workspace/Sources/SwiftHttp/HttpHeaderKey.swift:224:23: warning: static property 'tLSReportDomain' is not concurrency-safe because non-'Sendable' type 'HttpHeaderKey' may have shared mutable state; this is an error in the Swift 6 language mode
9 |
10 | /// Type safe header key wrapper
11 | public struct HttpHeaderKey {
| `- note: consider making struct 'HttpHeaderKey' conform to the 'Sendable' protocol
12 |
13 | public var rawValue: String
:
222 | public static let summary: HttpHeaderKey = "Summary"
223 | public static let supersedes: HttpHeaderKey = "Supersedes"
224 | public static let tLSReportDomain: HttpHeaderKey = "TLS-Report-Domain"
| |- warning: static property 'tLSReportDomain' is not concurrency-safe because non-'Sendable' type 'HttpHeaderKey' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'tLSReportDomain' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
225 | public static let tLSReportSubmitter: HttpHeaderKey = "TLS-Report-Submitter"
226 | public static let tLSRequired: HttpHeaderKey = "TLS-Required"
/host/spi-builder-workspace/Sources/SwiftHttp/HttpHeaderKey.swift:225:23: warning: static property 'tLSReportSubmitter' is not concurrency-safe because non-'Sendable' type 'HttpHeaderKey' may have shared mutable state; this is an error in the Swift 6 language mode
9 |
10 | /// Type safe header key wrapper
11 | public struct HttpHeaderKey {
| `- note: consider making struct 'HttpHeaderKey' conform to the 'Sendable' protocol
12 |
13 | public var rawValue: String
:
223 | public static let supersedes: HttpHeaderKey = "Supersedes"
224 | public static let tLSReportDomain: HttpHeaderKey = "TLS-Report-Domain"
225 | public static let tLSReportSubmitter: HttpHeaderKey = "TLS-Report-Submitter"
| |- warning: static property 'tLSReportSubmitter' is not concurrency-safe because non-'Sendable' type 'HttpHeaderKey' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'tLSReportSubmitter' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
226 | public static let tLSRequired: HttpHeaderKey = "TLS-Required"
227 | public static let to: HttpHeaderKey = "To"
/host/spi-builder-workspace/Sources/SwiftHttp/HttpHeaderKey.swift:226:23: warning: static property 'tLSRequired' is not concurrency-safe because non-'Sendable' type 'HttpHeaderKey' may have shared mutable state; this is an error in the Swift 6 language mode
9 |
10 | /// Type safe header key wrapper
11 | public struct HttpHeaderKey {
| `- note: consider making struct 'HttpHeaderKey' conform to the 'Sendable' protocol
12 |
13 | public var rawValue: String
:
224 | public static let tLSReportDomain: HttpHeaderKey = "TLS-Report-Domain"
225 | public static let tLSReportSubmitter: HttpHeaderKey = "TLS-Report-Submitter"
226 | public static let tLSRequired: HttpHeaderKey = "TLS-Required"
| |- warning: static property 'tLSRequired' is not concurrency-safe because non-'Sendable' type 'HttpHeaderKey' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'tLSRequired' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
227 | public static let to: HttpHeaderKey = "To"
228 | public static let userAgent: HttpHeaderKey = "User-Agent"
/host/spi-builder-workspace/Sources/SwiftHttp/HttpHeaderKey.swift:227:23: warning: static property 'to' is not concurrency-safe because non-'Sendable' type 'HttpHeaderKey' may have shared mutable state; this is an error in the Swift 6 language mode
9 |
10 | /// Type safe header key wrapper
11 | public struct HttpHeaderKey {
| `- note: consider making struct 'HttpHeaderKey' conform to the 'Sendable' protocol
12 |
13 | public var rawValue: String
:
225 | public static let tLSReportSubmitter: HttpHeaderKey = "TLS-Report-Submitter"
226 | public static let tLSRequired: HttpHeaderKey = "TLS-Required"
227 | public static let to: HttpHeaderKey = "To"
| |- warning: static property 'to' is not concurrency-safe because non-'Sendable' type 'HttpHeaderKey' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'to' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
228 | public static let userAgent: HttpHeaderKey = "User-Agent"
229 | public static let vBRInfo: HttpHeaderKey = "VBR-Info"
/host/spi-builder-workspace/Sources/SwiftHttp/HttpHeaderKey.swift:228:23: warning: static property 'userAgent' is not concurrency-safe because non-'Sendable' type 'HttpHeaderKey' may have shared mutable state; this is an error in the Swift 6 language mode
9 |
10 | /// Type safe header key wrapper
11 | public struct HttpHeaderKey {
| `- note: consider making struct 'HttpHeaderKey' conform to the 'Sendable' protocol
12 |
13 | public var rawValue: String
:
226 | public static let tLSRequired: HttpHeaderKey = "TLS-Required"
227 | public static let to: HttpHeaderKey = "To"
228 | public static let userAgent: HttpHeaderKey = "User-Agent"
| |- warning: static property 'userAgent' is not concurrency-safe because non-'Sendable' type 'HttpHeaderKey' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'userAgent' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
229 | public static let vBRInfo: HttpHeaderKey = "VBR-Info"
230 | public static let x400ContentIdentifier: HttpHeaderKey =
/host/spi-builder-workspace/Sources/SwiftHttp/HttpHeaderKey.swift:229:23: warning: static property 'vBRInfo' is not concurrency-safe because non-'Sendable' type 'HttpHeaderKey' may have shared mutable state; this is an error in the Swift 6 language mode
9 |
10 | /// Type safe header key wrapper
11 | public struct HttpHeaderKey {
| `- note: consider making struct 'HttpHeaderKey' conform to the 'Sendable' protocol
12 |
13 | public var rawValue: String
:
227 | public static let to: HttpHeaderKey = "To"
228 | public static let userAgent: HttpHeaderKey = "User-Agent"
229 | public static let vBRInfo: HttpHeaderKey = "VBR-Info"
| |- warning: static property 'vBRInfo' is not concurrency-safe because non-'Sendable' type 'HttpHeaderKey' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'vBRInfo' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
230 | public static let x400ContentIdentifier: HttpHeaderKey =
231 | "X400-Content-Identifier"
/host/spi-builder-workspace/Sources/SwiftHttp/HttpHeaderKey.swift:230:23: warning: static property 'x400ContentIdentifier' is not concurrency-safe because non-'Sendable' type 'HttpHeaderKey' may have shared mutable state; this is an error in the Swift 6 language mode
9 |
10 | /// Type safe header key wrapper
11 | public struct HttpHeaderKey {
| `- note: consider making struct 'HttpHeaderKey' conform to the 'Sendable' protocol
12 |
13 | public var rawValue: String
:
228 | public static let userAgent: HttpHeaderKey = "User-Agent"
229 | public static let vBRInfo: HttpHeaderKey = "VBR-Info"
230 | public static let x400ContentIdentifier: HttpHeaderKey =
| |- warning: static property 'x400ContentIdentifier' is not concurrency-safe because non-'Sendable' type 'HttpHeaderKey' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'x400ContentIdentifier' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
231 | "X400-Content-Identifier"
232 | public static let x400ContentReturn: HttpHeaderKey = "X400-Content-Return"
/host/spi-builder-workspace/Sources/SwiftHttp/HttpHeaderKey.swift:232:23: warning: static property 'x400ContentReturn' is not concurrency-safe because non-'Sendable' type 'HttpHeaderKey' may have shared mutable state; this is an error in the Swift 6 language mode
9 |
10 | /// Type safe header key wrapper
11 | public struct HttpHeaderKey {
| `- note: consider making struct 'HttpHeaderKey' conform to the 'Sendable' protocol
12 |
13 | public var rawValue: String
:
230 | public static let x400ContentIdentifier: HttpHeaderKey =
231 | "X400-Content-Identifier"
232 | public static let x400ContentReturn: HttpHeaderKey = "X400-Content-Return"
| |- warning: static property 'x400ContentReturn' is not concurrency-safe because non-'Sendable' type 'HttpHeaderKey' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'x400ContentReturn' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
233 | public static let x400ContentType: HttpHeaderKey = "X400-Content-Type"
234 | public static let x400MTSIdentifier: HttpHeaderKey = "X400-MTS-Identifier"
/host/spi-builder-workspace/Sources/SwiftHttp/HttpHeaderKey.swift:233:23: warning: static property 'x400ContentType' is not concurrency-safe because non-'Sendable' type 'HttpHeaderKey' may have shared mutable state; this is an error in the Swift 6 language mode
9 |
10 | /// Type safe header key wrapper
11 | public struct HttpHeaderKey {
| `- note: consider making struct 'HttpHeaderKey' conform to the 'Sendable' protocol
12 |
13 | public var rawValue: String
:
231 | "X400-Content-Identifier"
232 | public static let x400ContentReturn: HttpHeaderKey = "X400-Content-Return"
233 | public static let x400ContentType: HttpHeaderKey = "X400-Content-Type"
| |- warning: static property 'x400ContentType' is not concurrency-safe because non-'Sendable' type 'HttpHeaderKey' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'x400ContentType' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
234 | public static let x400MTSIdentifier: HttpHeaderKey = "X400-MTS-Identifier"
235 | public static let x400Originator: HttpHeaderKey = "X400-Originator"
/host/spi-builder-workspace/Sources/SwiftHttp/HttpHeaderKey.swift:234:23: warning: static property 'x400MTSIdentifier' is not concurrency-safe because non-'Sendable' type 'HttpHeaderKey' may have shared mutable state; this is an error in the Swift 6 language mode
9 |
10 | /// Type safe header key wrapper
11 | public struct HttpHeaderKey {
| `- note: consider making struct 'HttpHeaderKey' conform to the 'Sendable' protocol
12 |
13 | public var rawValue: String
:
232 | public static let x400ContentReturn: HttpHeaderKey = "X400-Content-Return"
233 | public static let x400ContentType: HttpHeaderKey = "X400-Content-Type"
234 | public static let x400MTSIdentifier: HttpHeaderKey = "X400-MTS-Identifier"
| |- warning: static property 'x400MTSIdentifier' is not concurrency-safe because non-'Sendable' type 'HttpHeaderKey' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'x400MTSIdentifier' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
235 | public static let x400Originator: HttpHeaderKey = "X400-Originator"
236 | public static let x400Received: HttpHeaderKey = "X400-Received"
/host/spi-builder-workspace/Sources/SwiftHttp/HttpHeaderKey.swift:235:23: warning: static property 'x400Originator' is not concurrency-safe because non-'Sendable' type 'HttpHeaderKey' may have shared mutable state; this is an error in the Swift 6 language mode
9 |
10 | /// Type safe header key wrapper
11 | public struct HttpHeaderKey {
| `- note: consider making struct 'HttpHeaderKey' conform to the 'Sendable' protocol
12 |
13 | public var rawValue: String
:
233 | public static let x400ContentType: HttpHeaderKey = "X400-Content-Type"
234 | public static let x400MTSIdentifier: HttpHeaderKey = "X400-MTS-Identifier"
235 | public static let x400Originator: HttpHeaderKey = "X400-Originator"
| |- warning: static property 'x400Originator' is not concurrency-safe because non-'Sendable' type 'HttpHeaderKey' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'x400Originator' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
236 | public static let x400Received: HttpHeaderKey = "X400-Received"
237 | public static let x400Recipients: HttpHeaderKey = "X400-Recipients"
/host/spi-builder-workspace/Sources/SwiftHttp/HttpHeaderKey.swift:236:23: warning: static property 'x400Received' is not concurrency-safe because non-'Sendable' type 'HttpHeaderKey' may have shared mutable state; this is an error in the Swift 6 language mode
9 |
10 | /// Type safe header key wrapper
11 | public struct HttpHeaderKey {
| `- note: consider making struct 'HttpHeaderKey' conform to the 'Sendable' protocol
12 |
13 | public var rawValue: String
:
234 | public static let x400MTSIdentifier: HttpHeaderKey = "X400-MTS-Identifier"
235 | public static let x400Originator: HttpHeaderKey = "X400-Originator"
236 | public static let x400Received: HttpHeaderKey = "X400-Received"
| |- warning: static property 'x400Received' is not concurrency-safe because non-'Sendable' type 'HttpHeaderKey' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'x400Received' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
237 | public static let x400Recipients: HttpHeaderKey = "X400-Recipients"
238 | public static let x400Trace: HttpHeaderKey = "X400-Trace"
/host/spi-builder-workspace/Sources/SwiftHttp/HttpHeaderKey.swift:237:23: warning: static property 'x400Recipients' is not concurrency-safe because non-'Sendable' type 'HttpHeaderKey' may have shared mutable state; this is an error in the Swift 6 language mode
9 |
10 | /// Type safe header key wrapper
11 | public struct HttpHeaderKey {
| `- note: consider making struct 'HttpHeaderKey' conform to the 'Sendable' protocol
12 |
13 | public var rawValue: String
:
235 | public static let x400Originator: HttpHeaderKey = "X400-Originator"
236 | public static let x400Received: HttpHeaderKey = "X400-Received"
237 | public static let x400Recipients: HttpHeaderKey = "X400-Recipients"
| |- warning: static property 'x400Recipients' is not concurrency-safe because non-'Sendable' type 'HttpHeaderKey' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'x400Recipients' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
238 | public static let x400Trace: HttpHeaderKey = "X400-Trace"
239 | public static let xrefcase: HttpHeaderKey = "Xrefcase"
/host/spi-builder-workspace/Sources/SwiftHttp/HttpHeaderKey.swift:238:23: warning: static property 'x400Trace' is not concurrency-safe because non-'Sendable' type 'HttpHeaderKey' may have shared mutable state; this is an error in the Swift 6 language mode
9 |
10 | /// Type safe header key wrapper
11 | public struct HttpHeaderKey {
| `- note: consider making struct 'HttpHeaderKey' conform to the 'Sendable' protocol
12 |
13 | public var rawValue: String
:
236 | public static let x400Received: HttpHeaderKey = "X400-Received"
237 | public static let x400Recipients: HttpHeaderKey = "X400-Recipients"
238 | public static let x400Trace: HttpHeaderKey = "X400-Trace"
| |- warning: static property 'x400Trace' is not concurrency-safe because non-'Sendable' type 'HttpHeaderKey' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'x400Trace' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
239 | public static let xrefcase: HttpHeaderKey = "Xrefcase"
240 | /// Provisional Message Header Field Names
/host/spi-builder-workspace/Sources/SwiftHttp/HttpHeaderKey.swift:239:23: warning: static property 'xrefcase' is not concurrency-safe because non-'Sendable' type 'HttpHeaderKey' may have shared mutable state; this is an error in the Swift 6 language mode
9 |
10 | /// Type safe header key wrapper
11 | public struct HttpHeaderKey {
| `- note: consider making struct 'HttpHeaderKey' conform to the 'Sendable' protocol
12 |
13 | public var rawValue: String
:
237 | public static let x400Recipients: HttpHeaderKey = "X400-Recipients"
238 | public static let x400Trace: HttpHeaderKey = "X400-Trace"
239 | public static let xrefcase: HttpHeaderKey = "Xrefcase"
| |- warning: static property 'xrefcase' is not concurrency-safe because non-'Sendable' type 'HttpHeaderKey' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'xrefcase' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
240 | /// Provisional Message Header Field Names
241 | public static let apparentlyTo: HttpHeaderKey = "Apparently-To"
/host/spi-builder-workspace/Sources/SwiftHttp/HttpHeaderKey.swift:241:23: warning: static property 'apparentlyTo' is not concurrency-safe because non-'Sendable' type 'HttpHeaderKey' may have shared mutable state; this is an error in the Swift 6 language mode
9 |
10 | /// Type safe header key wrapper
11 | public struct HttpHeaderKey {
| `- note: consider making struct 'HttpHeaderKey' conform to the 'Sendable' protocol
12 |
13 | public var rawValue: String
:
239 | public static let xrefcase: HttpHeaderKey = "Xrefcase"
240 | /// Provisional Message Header Field Names
241 | public static let apparentlyTo: HttpHeaderKey = "Apparently-To"
| |- warning: static property 'apparentlyTo' is not concurrency-safe because non-'Sendable' type 'HttpHeaderKey' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'apparentlyTo' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
242 | public static let author: HttpHeaderKey = "Author"
243 | public static let eDIINTFeatures: HttpHeaderKey = "EDIINT-Features"
/host/spi-builder-workspace/Sources/SwiftHttp/HttpHeaderKey.swift:242:23: warning: static property 'author' is not concurrency-safe because non-'Sendable' type 'HttpHeaderKey' may have shared mutable state; this is an error in the Swift 6 language mode
9 |
10 | /// Type safe header key wrapper
11 | public struct HttpHeaderKey {
| `- note: consider making struct 'HttpHeaderKey' conform to the 'Sendable' protocol
12 |
13 | public var rawValue: String
:
240 | /// Provisional Message Header Field Names
241 | public static let apparentlyTo: HttpHeaderKey = "Apparently-To"
242 | public static let author: HttpHeaderKey = "Author"
| |- warning: static property 'author' is not concurrency-safe because non-'Sendable' type 'HttpHeaderKey' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'author' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
243 | public static let eDIINTFeatures: HttpHeaderKey = "EDIINT-Features"
244 | public static let eesstVersion: HttpHeaderKey = "Eesst-Version"
/host/spi-builder-workspace/Sources/SwiftHttp/HttpHeaderKey.swift:243:23: warning: static property 'eDIINTFeatures' is not concurrency-safe because non-'Sendable' type 'HttpHeaderKey' may have shared mutable state; this is an error in the Swift 6 language mode
9 |
10 | /// Type safe header key wrapper
11 | public struct HttpHeaderKey {
| `- note: consider making struct 'HttpHeaderKey' conform to the 'Sendable' protocol
12 |
13 | public var rawValue: String
:
241 | public static let apparentlyTo: HttpHeaderKey = "Apparently-To"
242 | public static let author: HttpHeaderKey = "Author"
243 | public static let eDIINTFeatures: HttpHeaderKey = "EDIINT-Features"
| |- warning: static property 'eDIINTFeatures' is not concurrency-safe because non-'Sendable' type 'HttpHeaderKey' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'eDIINTFeatures' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
244 | public static let eesstVersion: HttpHeaderKey = "Eesst-Version"
245 | public static let errorsTo: HttpHeaderKey = "Errors-To"
/host/spi-builder-workspace/Sources/SwiftHttp/HttpHeaderKey.swift:244:23: warning: static property 'eesstVersion' is not concurrency-safe because non-'Sendable' type 'HttpHeaderKey' may have shared mutable state; this is an error in the Swift 6 language mode
9 |
10 | /// Type safe header key wrapper
11 | public struct HttpHeaderKey {
| `- note: consider making struct 'HttpHeaderKey' conform to the 'Sendable' protocol
12 |
13 | public var rawValue: String
:
242 | public static let author: HttpHeaderKey = "Author"
243 | public static let eDIINTFeatures: HttpHeaderKey = "EDIINT-Features"
244 | public static let eesstVersion: HttpHeaderKey = "Eesst-Version"
| |- warning: static property 'eesstVersion' is not concurrency-safe because non-'Sendable' type 'HttpHeaderKey' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'eesstVersion' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
245 | public static let errorsTo: HttpHeaderKey = "Errors-To"
246 | public static let formSub: HttpHeaderKey = "Form-Sub"
/host/spi-builder-workspace/Sources/SwiftHttp/HttpHeaderKey.swift:245:23: warning: static property 'errorsTo' is not concurrency-safe because non-'Sendable' type 'HttpHeaderKey' may have shared mutable state; this is an error in the Swift 6 language mode
9 |
10 | /// Type safe header key wrapper
11 | public struct HttpHeaderKey {
| `- note: consider making struct 'HttpHeaderKey' conform to the 'Sendable' protocol
12 |
13 | public var rawValue: String
:
243 | public static let eDIINTFeatures: HttpHeaderKey = "EDIINT-Features"
244 | public static let eesstVersion: HttpHeaderKey = "Eesst-Version"
245 | public static let errorsTo: HttpHeaderKey = "Errors-To"
| |- warning: static property 'errorsTo' is not concurrency-safe because non-'Sendable' type 'HttpHeaderKey' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'errorsTo' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
246 | public static let formSub: HttpHeaderKey = "Form-Sub"
247 | public static let jabberID: HttpHeaderKey = "Jabber-ID"
/host/spi-builder-workspace/Sources/SwiftHttp/HttpHeaderKey.swift:246:23: warning: static property 'formSub' is not concurrency-safe because non-'Sendable' type 'HttpHeaderKey' may have shared mutable state; this is an error in the Swift 6 language mode
9 |
10 | /// Type safe header key wrapper
11 | public struct HttpHeaderKey {
| `- note: consider making struct 'HttpHeaderKey' conform to the 'Sendable' protocol
12 |
13 | public var rawValue: String
:
244 | public static let eesstVersion: HttpHeaderKey = "Eesst-Version"
245 | public static let errorsTo: HttpHeaderKey = "Errors-To"
246 | public static let formSub: HttpHeaderKey = "Form-Sub"
| |- warning: static property 'formSub' is not concurrency-safe because non-'Sendable' type 'HttpHeaderKey' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'formSub' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
247 | public static let jabberID: HttpHeaderKey = "Jabber-ID"
248 | public static let mMHSAuthorizingUsers: HttpHeaderKey =
/host/spi-builder-workspace/Sources/SwiftHttp/HttpHeaderKey.swift:247:23: warning: static property 'jabberID' is not concurrency-safe because non-'Sendable' type 'HttpHeaderKey' may have shared mutable state; this is an error in the Swift 6 language mode
9 |
10 | /// Type safe header key wrapper
11 | public struct HttpHeaderKey {
| `- note: consider making struct 'HttpHeaderKey' conform to the 'Sendable' protocol
12 |
13 | public var rawValue: String
:
245 | public static let errorsTo: HttpHeaderKey = "Errors-To"
246 | public static let formSub: HttpHeaderKey = "Form-Sub"
247 | public static let jabberID: HttpHeaderKey = "Jabber-ID"
| |- warning: static property 'jabberID' is not concurrency-safe because non-'Sendable' type 'HttpHeaderKey' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'jabberID' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
248 | public static let mMHSAuthorizingUsers: HttpHeaderKey =
249 | "MMHS-Authorizing-Users"
/host/spi-builder-workspace/Sources/SwiftHttp/HttpHeaderKey.swift:248:23: warning: static property 'mMHSAuthorizingUsers' is not concurrency-safe because non-'Sendable' type 'HttpHeaderKey' may have shared mutable state; this is an error in the Swift 6 language mode
9 |
10 | /// Type safe header key wrapper
11 | public struct HttpHeaderKey {
| `- note: consider making struct 'HttpHeaderKey' conform to the 'Sendable' protocol
12 |
13 | public var rawValue: String
:
246 | public static let formSub: HttpHeaderKey = "Form-Sub"
247 | public static let jabberID: HttpHeaderKey = "Jabber-ID"
248 | public static let mMHSAuthorizingUsers: HttpHeaderKey =
| |- warning: static property 'mMHSAuthorizingUsers' is not concurrency-safe because non-'Sendable' type 'HttpHeaderKey' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'mMHSAuthorizingUsers' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
249 | "MMHS-Authorizing-Users"
250 | public static let privicon: HttpHeaderKey = "Privicon"
/host/spi-builder-workspace/Sources/SwiftHttp/HttpHeaderKey.swift:250:23: warning: static property 'privicon' is not concurrency-safe because non-'Sendable' type 'HttpHeaderKey' may have shared mutable state; this is an error in the Swift 6 language mode
9 |
10 | /// Type safe header key wrapper
11 | public struct HttpHeaderKey {
| `- note: consider making struct 'HttpHeaderKey' conform to the 'Sendable' protocol
12 |
13 | public var rawValue: String
:
248 | public static let mMHSAuthorizingUsers: HttpHeaderKey =
249 | "MMHS-Authorizing-Users"
250 | public static let privicon: HttpHeaderKey = "Privicon"
| |- warning: static property 'privicon' is not concurrency-safe because non-'Sendable' type 'HttpHeaderKey' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'privicon' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
251 | public static let sIOLabel: HttpHeaderKey = "SIO-Label"
252 | public static let sIOLabelHistory: HttpHeaderKey = "SIO-Label-History"
/host/spi-builder-workspace/Sources/SwiftHttp/HttpHeaderKey.swift:251:23: warning: static property 'sIOLabel' is not concurrency-safe because non-'Sendable' type 'HttpHeaderKey' may have shared mutable state; this is an error in the Swift 6 language mode
9 |
10 | /// Type safe header key wrapper
11 | public struct HttpHeaderKey {
| `- note: consider making struct 'HttpHeaderKey' conform to the 'Sendable' protocol
12 |
13 | public var rawValue: String
:
249 | "MMHS-Authorizing-Users"
250 | public static let privicon: HttpHeaderKey = "Privicon"
251 | public static let sIOLabel: HttpHeaderKey = "SIO-Label"
| |- warning: static property 'sIOLabel' is not concurrency-safe because non-'Sendable' type 'HttpHeaderKey' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'sIOLabel' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
252 | public static let sIOLabelHistory: HttpHeaderKey = "SIO-Label-History"
253 | public static let xArchivedAt: HttpHeaderKey = "X-Archived-At"
/host/spi-builder-workspace/Sources/SwiftHttp/HttpHeaderKey.swift:252:23: warning: static property 'sIOLabelHistory' is not concurrency-safe because non-'Sendable' type 'HttpHeaderKey' may have shared mutable state; this is an error in the Swift 6 language mode
9 |
10 | /// Type safe header key wrapper
11 | public struct HttpHeaderKey {
| `- note: consider making struct 'HttpHeaderKey' conform to the 'Sendable' protocol
12 |
13 | public var rawValue: String
:
250 | public static let privicon: HttpHeaderKey = "Privicon"
251 | public static let sIOLabel: HttpHeaderKey = "SIO-Label"
252 | public static let sIOLabelHistory: HttpHeaderKey = "SIO-Label-History"
| |- warning: static property 'sIOLabelHistory' is not concurrency-safe because non-'Sendable' type 'HttpHeaderKey' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'sIOLabelHistory' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
253 | public static let xArchivedAt: HttpHeaderKey = "X-Archived-At"
254 | public static let xMittente: HttpHeaderKey = "X-Mittente"
/host/spi-builder-workspace/Sources/SwiftHttp/HttpHeaderKey.swift:253:23: warning: static property 'xArchivedAt' is not concurrency-safe because non-'Sendable' type 'HttpHeaderKey' may have shared mutable state; this is an error in the Swift 6 language mode
9 |
10 | /// Type safe header key wrapper
11 | public struct HttpHeaderKey {
| `- note: consider making struct 'HttpHeaderKey' conform to the 'Sendable' protocol
12 |
13 | public var rawValue: String
:
251 | public static let sIOLabel: HttpHeaderKey = "SIO-Label"
252 | public static let sIOLabelHistory: HttpHeaderKey = "SIO-Label-History"
253 | public static let xArchivedAt: HttpHeaderKey = "X-Archived-At"
| |- warning: static property 'xArchivedAt' is not concurrency-safe because non-'Sendable' type 'HttpHeaderKey' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'xArchivedAt' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
254 | public static let xMittente: HttpHeaderKey = "X-Mittente"
255 | public static let xPGPSig: HttpHeaderKey = "X-PGP-Sig"
/host/spi-builder-workspace/Sources/SwiftHttp/HttpHeaderKey.swift:254:23: warning: static property 'xMittente' is not concurrency-safe because non-'Sendable' type 'HttpHeaderKey' may have shared mutable state; this is an error in the Swift 6 language mode
9 |
10 | /// Type safe header key wrapper
11 | public struct HttpHeaderKey {
| `- note: consider making struct 'HttpHeaderKey' conform to the 'Sendable' protocol
12 |
13 | public var rawValue: String
:
252 | public static let sIOLabelHistory: HttpHeaderKey = "SIO-Label-History"
253 | public static let xArchivedAt: HttpHeaderKey = "X-Archived-At"
254 | public static let xMittente: HttpHeaderKey = "X-Mittente"
| |- warning: static property 'xMittente' is not concurrency-safe because non-'Sendable' type 'HttpHeaderKey' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'xMittente' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
255 | public static let xPGPSig: HttpHeaderKey = "X-PGP-Sig"
256 | public static let xRicevuta: HttpHeaderKey = "X-Ricevuta"
/host/spi-builder-workspace/Sources/SwiftHttp/HttpHeaderKey.swift:255:23: warning: static property 'xPGPSig' is not concurrency-safe because non-'Sendable' type 'HttpHeaderKey' may have shared mutable state; this is an error in the Swift 6 language mode
9 |
10 | /// Type safe header key wrapper
11 | public struct HttpHeaderKey {
| `- note: consider making struct 'HttpHeaderKey' conform to the 'Sendable' protocol
12 |
13 | public var rawValue: String
:
253 | public static let xArchivedAt: HttpHeaderKey = "X-Archived-At"
254 | public static let xMittente: HttpHeaderKey = "X-Mittente"
255 | public static let xPGPSig: HttpHeaderKey = "X-PGP-Sig"
| |- warning: static property 'xPGPSig' is not concurrency-safe because non-'Sendable' type 'HttpHeaderKey' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'xPGPSig' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
256 | public static let xRicevuta: HttpHeaderKey = "X-Ricevuta"
257 | public static let xRiferimentoMessageID: HttpHeaderKey =
/host/spi-builder-workspace/Sources/SwiftHttp/HttpHeaderKey.swift:256:23: warning: static property 'xRicevuta' is not concurrency-safe because non-'Sendable' type 'HttpHeaderKey' may have shared mutable state; this is an error in the Swift 6 language mode
9 |
10 | /// Type safe header key wrapper
11 | public struct HttpHeaderKey {
| `- note: consider making struct 'HttpHeaderKey' conform to the 'Sendable' protocol
12 |
13 | public var rawValue: String
:
254 | public static let xMittente: HttpHeaderKey = "X-Mittente"
255 | public static let xPGPSig: HttpHeaderKey = "X-PGP-Sig"
256 | public static let xRicevuta: HttpHeaderKey = "X-Ricevuta"
| |- warning: static property 'xRicevuta' is not concurrency-safe because non-'Sendable' type 'HttpHeaderKey' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'xRicevuta' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
257 | public static let xRiferimentoMessageID: HttpHeaderKey =
258 | "X-Riferimento-Message-ID"
/host/spi-builder-workspace/Sources/SwiftHttp/HttpHeaderKey.swift:257:23: warning: static property 'xRiferimentoMessageID' is not concurrency-safe because non-'Sendable' type 'HttpHeaderKey' may have shared mutable state; this is an error in the Swift 6 language mode
9 |
10 | /// Type safe header key wrapper
11 | public struct HttpHeaderKey {
| `- note: consider making struct 'HttpHeaderKey' conform to the 'Sendable' protocol
12 |
13 | public var rawValue: String
:
255 | public static let xPGPSig: HttpHeaderKey = "X-PGP-Sig"
256 | public static let xRicevuta: HttpHeaderKey = "X-Ricevuta"
257 | public static let xRiferimentoMessageID: HttpHeaderKey =
| |- warning: static property 'xRiferimentoMessageID' is not concurrency-safe because non-'Sendable' type 'HttpHeaderKey' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'xRiferimentoMessageID' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
258 | "X-Riferimento-Message-ID"
259 | public static let xTipoRicevuta: HttpHeaderKey = "X-TipoRicevuta"
/host/spi-builder-workspace/Sources/SwiftHttp/HttpHeaderKey.swift:259:23: warning: static property 'xTipoRicevuta' is not concurrency-safe because non-'Sendable' type 'HttpHeaderKey' may have shared mutable state; this is an error in the Swift 6 language mode
9 |
10 | /// Type safe header key wrapper
11 | public struct HttpHeaderKey {
| `- note: consider making struct 'HttpHeaderKey' conform to the 'Sendable' protocol
12 |
13 | public var rawValue: String
:
257 | public static let xRiferimentoMessageID: HttpHeaderKey =
258 | "X-Riferimento-Message-ID"
259 | public static let xTipoRicevuta: HttpHeaderKey = "X-TipoRicevuta"
| |- warning: static property 'xTipoRicevuta' is not concurrency-safe because non-'Sendable' type 'HttpHeaderKey' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'xTipoRicevuta' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
260 | public static let xTrasporto: HttpHeaderKey = "X-Trasporto"
261 | public static let xVerificaSicurezza: HttpHeaderKey = "X-VerificaSicurezza"
/host/spi-builder-workspace/Sources/SwiftHttp/HttpHeaderKey.swift:260:23: warning: static property 'xTrasporto' is not concurrency-safe because non-'Sendable' type 'HttpHeaderKey' may have shared mutable state; this is an error in the Swift 6 language mode
9 |
10 | /// Type safe header key wrapper
11 | public struct HttpHeaderKey {
| `- note: consider making struct 'HttpHeaderKey' conform to the 'Sendable' protocol
12 |
13 | public var rawValue: String
:
258 | "X-Riferimento-Message-ID"
259 | public static let xTipoRicevuta: HttpHeaderKey = "X-TipoRicevuta"
260 | public static let xTrasporto: HttpHeaderKey = "X-Trasporto"
| |- warning: static property 'xTrasporto' is not concurrency-safe because non-'Sendable' type 'HttpHeaderKey' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'xTrasporto' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
261 | public static let xVerificaSicurezza: HttpHeaderKey = "X-VerificaSicurezza"
262 | }
/host/spi-builder-workspace/Sources/SwiftHttp/HttpHeaderKey.swift:261:23: warning: static property 'xVerificaSicurezza' is not concurrency-safe because non-'Sendable' type 'HttpHeaderKey' may have shared mutable state; this is an error in the Swift 6 language mode
9 |
10 | /// Type safe header key wrapper
11 | public struct HttpHeaderKey {
| `- note: consider making struct 'HttpHeaderKey' conform to the 'Sendable' protocol
12 |
13 | public var rawValue: String
:
259 | public static let xTipoRicevuta: HttpHeaderKey = "X-TipoRicevuta"
260 | public static let xTrasporto: HttpHeaderKey = "X-Trasporto"
261 | public static let xVerificaSicurezza: HttpHeaderKey = "X-VerificaSicurezza"
| |- warning: static property 'xVerificaSicurezza' is not concurrency-safe because non-'Sendable' type 'HttpHeaderKey' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'xVerificaSicurezza' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
262 | }
263 |
[15/39] Compiling SwiftHttp HttpUrl.swift
/host/spi-builder-workspace/Sources/SwiftHttp/URLRequest+cURL.swift:14:11: error: cannot find type 'URLRequest' in scope
12 | #endif
13 |
14 | extension URLRequest {
| `- error: cannot find type 'URLRequest' in scope
15 |
16 | /// Returns the curl command representation of a URLRequest
/host/spi-builder-workspace/Sources/SwiftHttp/UrlSessionHttpClient.swift:20:18: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
18 | private let loggerLabel = "com.binarybirds.swift-http"
19 |
20 | let session: URLSession
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
21 | let logger: Logger
22 |
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SwiftHttp/UrlSessionHttpClient.swift:32:18: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
30 | ///
31 | public init(
32 | session: URLSession = .shared,
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
33 | logLevel: Logger.Level = .critical
34 | ) {
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SwiftHttp/UrlSessionHttpClient.swift:32:32: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
30 | ///
31 | public init(
32 | session: URLSession = .shared,
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
33 | logLevel: Logger.Level = .critical
34 | ) {
/host/spi-builder-workspace/Sources/SwiftHttp/UrlSessionHttpClient.swift:52:26: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
50 | @_disfavoredOverload
51 | @available(*, deprecated, message: "Use init(session:logLevel:) instead.")
52 | public init(session: URLSession = .shared, log: Bool = false) {
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
53 | var logger = Logger(label: loggerLabel)
54 | logger.logLevel = log ? .info : .critical
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SwiftHttp/UrlSessionHttpClient.swift:52:40: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
50 | @_disfavoredOverload
51 | @available(*, deprecated, message: "Use init(session:logLevel:) instead.")
52 | public init(session: URLSession = .shared, log: Bool = false) {
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
53 | var logger = Logger(label: loggerLabel)
54 | logger.logLevel = log ? .info : .critical
/host/spi-builder-workspace/Sources/SwiftHttp/UrlSessionHttpClient.swift:193:26: error: cannot find type 'URLRequest' in scope
191 |
192 | private func asyncMethod<T, S: URLSessionTask>(
193 | with urlRequest: URLRequest,
| `- error: cannot find type 'URLRequest' in scope
194 | _ method: @escaping (
195 | URLRequest, @escaping @Sendable (T?, URLResponse?, Error?) -> Void
/host/spi-builder-workspace/Sources/SwiftHttp/UrlSessionHttpClient.swift:195:13: error: cannot find type 'URLRequest' in scope
193 | with urlRequest: URLRequest,
194 | _ method: @escaping (
195 | URLRequest, @escaping @Sendable (T?, URLResponse?, Error?) -> Void
| `- error: cannot find type 'URLRequest' in scope
196 | ) -> S
197 | ) async throws -> (T, URLResponse) {
/host/spi-builder-workspace/Sources/SwiftHttp/UrlSessionHttpClient.swift:192:36: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
190 | }
191 |
192 | private func asyncMethod<T, S: URLSessionTask>(
| `- error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
193 | with urlRequest: URLRequest,
194 | _ method: @escaping (
Foundation.URLSessionTask:2:18: note: 'URLSessionTask' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionTask = AnyObject
| `- note: 'URLSessionTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SwiftHttp/UrlSessionHttpClient.swift:197:27: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
195 | URLRequest, @escaping @Sendable (T?, URLResponse?, Error?) -> Void
196 | ) -> S
197 | ) async throws -> (T, URLResponse) {
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
198 | try await withCheckedThrowingContinuation { continuation in
199 | method(urlRequest) { t, response, error in
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
| `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SwiftHttp/HttpRequest.swift:33:28: error: cannot find type 'URLRequest' in scope
31 |
32 | /// Converts a HttpRequest to a URLRequest
33 | public var urlRequest: URLRequest {
| `- error: cannot find type 'URLRequest' in scope
34 | var request = URLRequest(url: url.url)
35 | request.httpMethod = method.rawValue.uppercased()
/host/spi-builder-workspace/Sources/SwiftHttp/UrlSessionHttpClient.swift:72:25: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
70 | let urlRequest = req.urlRequest
71 | logger.info(.init(stringLiteral: urlRequest.curlString))
72 | let res: (Data, URLResponse)
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
73 |
74 | #if os(Linux)
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
| `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SwiftHttp/UrlSessionHttpClient.swift:78:41: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
76 | #else
77 | if #available(iOS 15.0, tvOS 15.0, watchOS 8.0, macOS 12.0, *) {
78 | res = try await session.data(for: urlRequest)
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
79 | }
80 | else {
/host/spi-builder-workspace/Sources/SwiftHttp/UrlSessionHttpClient.swift:81:71: error: value of type 'URLSession' (aka 'AnyObject') has no member 'dataTask'
79 | }
80 | else {
81 | res = try await asyncMethod(with: urlRequest, session.dataTask)
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'dataTask'
82 | }
83 | #endif
/host/spi-builder-workspace/Sources/SwiftHttp/UrlSessionHttpClient.swift:112:25: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
110 | }
111 | logger.info(.init(stringLiteral: urlRequest.curlString))
112 | let res: (Data, URLResponse)
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
113 |
114 | #if os(Linux)
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
| `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SwiftHttp/UrlSessionHttpClient.swift:120:41: error: value of type 'URLSession' (aka 'AnyObject') has no member 'upload'
118 | #else
119 | if #available(iOS 15.0, tvOS 15.0, watchOS 8.0, macOS 12.0, *) {
120 | res = try await session.upload(
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'upload'
121 | for: urlRequest,
122 | from: data,
/host/spi-builder-workspace/Sources/SwiftHttp/UrlSessionHttpClient.swift:123:31: error: 'nil' requires a contextual type
121 | for: urlRequest,
122 | from: data,
123 | delegate: nil
| `- error: 'nil' requires a contextual type
124 | )
125 | }
/host/spi-builder-workspace/Sources/SwiftHttp/UrlSessionHttpClient.swift:128:29: error: value of type 'URLSession' (aka 'AnyObject') has no member 'uploadTask'
126 | else {
127 | res = try await asyncMethod(with: urlRequest) {
128 | session.uploadTask(
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'uploadTask'
129 | with: $0,
130 | from: data,
/host/spi-builder-workspace/Sources/SwiftHttp/UrlSessionHttpClient.swift:161:24: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
159 | let urlRequest = req.urlRequest
160 | logger.info(.init(stringLiteral: urlRequest.curlString))
161 | let res: (URL, URLResponse)
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
162 | #if os(Linux)
163 | res = try await asyncMethod(with: urlRequest, session.downloadTask)
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
| `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SwiftHttp/UrlSessionHttpClient.swift:166:41: error: value of type 'URLSession' (aka 'AnyObject') has no member 'download'
164 | #else
165 | if #available(iOS 15.0, tvOS 15.0, watchOS 8.0, macOS 12.0, *) {
166 | res = try await session.download(for: urlRequest, delegate: nil)
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'download'
167 | }
168 | else {
/host/spi-builder-workspace/Sources/SwiftHttp/UrlSessionHttpClient.swift:166:77: error: 'nil' requires a contextual type
164 | #else
165 | if #available(iOS 15.0, tvOS 15.0, watchOS 8.0, macOS 12.0, *) {
166 | res = try await session.download(for: urlRequest, delegate: nil)
| `- error: 'nil' requires a contextual type
167 | }
168 | else {
/host/spi-builder-workspace/Sources/SwiftHttp/UrlSessionHttpClient.swift:171:29: error: value of type 'URLSession' (aka 'AnyObject') has no member 'downloadTask'
169 | res = try await asyncMethod(
170 | with: urlRequest,
171 | session.downloadTask
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'downloadTask'
172 | )
173 | }
/host/spi-builder-workspace/Sources/SwiftHttp/UrlSessionHttpClient.swift:201:56: error: value of type '_' expected to be instance of class or class-constrained type
199 | method(urlRequest) { t, response, error in
200 | if let t = t, let response = response {
201 | continuation.resume(returning: (t, response))
| `- error: value of type '_' expected to be instance of class or class-constrained type
202 | }
203 | else {
[16/39] Compiling SwiftHttp URLRequest+cURL.swift
/host/spi-builder-workspace/Sources/SwiftHttp/URLRequest+cURL.swift:14:11: error: cannot find type 'URLRequest' in scope
12 | #endif
13 |
14 | extension URLRequest {
| `- error: cannot find type 'URLRequest' in scope
15 |
16 | /// Returns the curl command representation of a URLRequest
/host/spi-builder-workspace/Sources/SwiftHttp/UrlSessionHttpClient.swift:20:18: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
18 | private let loggerLabel = "com.binarybirds.swift-http"
19 |
20 | let session: URLSession
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
21 | let logger: Logger
22 |
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SwiftHttp/UrlSessionHttpClient.swift:32:18: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
30 | ///
31 | public init(
32 | session: URLSession = .shared,
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
33 | logLevel: Logger.Level = .critical
34 | ) {
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SwiftHttp/UrlSessionHttpClient.swift:32:32: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
30 | ///
31 | public init(
32 | session: URLSession = .shared,
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
33 | logLevel: Logger.Level = .critical
34 | ) {
/host/spi-builder-workspace/Sources/SwiftHttp/UrlSessionHttpClient.swift:52:26: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
50 | @_disfavoredOverload
51 | @available(*, deprecated, message: "Use init(session:logLevel:) instead.")
52 | public init(session: URLSession = .shared, log: Bool = false) {
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
53 | var logger = Logger(label: loggerLabel)
54 | logger.logLevel = log ? .info : .critical
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SwiftHttp/UrlSessionHttpClient.swift:52:40: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
50 | @_disfavoredOverload
51 | @available(*, deprecated, message: "Use init(session:logLevel:) instead.")
52 | public init(session: URLSession = .shared, log: Bool = false) {
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
53 | var logger = Logger(label: loggerLabel)
54 | logger.logLevel = log ? .info : .critical
/host/spi-builder-workspace/Sources/SwiftHttp/UrlSessionHttpClient.swift:193:26: error: cannot find type 'URLRequest' in scope
191 |
192 | private func asyncMethod<T, S: URLSessionTask>(
193 | with urlRequest: URLRequest,
| `- error: cannot find type 'URLRequest' in scope
194 | _ method: @escaping (
195 | URLRequest, @escaping @Sendable (T?, URLResponse?, Error?) -> Void
/host/spi-builder-workspace/Sources/SwiftHttp/UrlSessionHttpClient.swift:195:13: error: cannot find type 'URLRequest' in scope
193 | with urlRequest: URLRequest,
194 | _ method: @escaping (
195 | URLRequest, @escaping @Sendable (T?, URLResponse?, Error?) -> Void
| `- error: cannot find type 'URLRequest' in scope
196 | ) -> S
197 | ) async throws -> (T, URLResponse) {
/host/spi-builder-workspace/Sources/SwiftHttp/UrlSessionHttpClient.swift:192:36: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
190 | }
191 |
192 | private func asyncMethod<T, S: URLSessionTask>(
| `- error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
193 | with urlRequest: URLRequest,
194 | _ method: @escaping (
Foundation.URLSessionTask:2:18: note: 'URLSessionTask' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionTask = AnyObject
| `- note: 'URLSessionTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SwiftHttp/UrlSessionHttpClient.swift:197:27: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
195 | URLRequest, @escaping @Sendable (T?, URLResponse?, Error?) -> Void
196 | ) -> S
197 | ) async throws -> (T, URLResponse) {
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
198 | try await withCheckedThrowingContinuation { continuation in
199 | method(urlRequest) { t, response, error in
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
| `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SwiftHttp/HttpRequest.swift:33:28: error: cannot find type 'URLRequest' in scope
31 |
32 | /// Converts a HttpRequest to a URLRequest
33 | public var urlRequest: URLRequest {
| `- error: cannot find type 'URLRequest' in scope
34 | var request = URLRequest(url: url.url)
35 | request.httpMethod = method.rawValue.uppercased()
/host/spi-builder-workspace/Sources/SwiftHttp/UrlSessionHttpClient.swift:72:25: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
70 | let urlRequest = req.urlRequest
71 | logger.info(.init(stringLiteral: urlRequest.curlString))
72 | let res: (Data, URLResponse)
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
73 |
74 | #if os(Linux)
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
| `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SwiftHttp/UrlSessionHttpClient.swift:78:41: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
76 | #else
77 | if #available(iOS 15.0, tvOS 15.0, watchOS 8.0, macOS 12.0, *) {
78 | res = try await session.data(for: urlRequest)
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
79 | }
80 | else {
/host/spi-builder-workspace/Sources/SwiftHttp/UrlSessionHttpClient.swift:81:71: error: value of type 'URLSession' (aka 'AnyObject') has no member 'dataTask'
79 | }
80 | else {
81 | res = try await asyncMethod(with: urlRequest, session.dataTask)
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'dataTask'
82 | }
83 | #endif
/host/spi-builder-workspace/Sources/SwiftHttp/UrlSessionHttpClient.swift:112:25: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
110 | }
111 | logger.info(.init(stringLiteral: urlRequest.curlString))
112 | let res: (Data, URLResponse)
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
113 |
114 | #if os(Linux)
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
| `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SwiftHttp/UrlSessionHttpClient.swift:120:41: error: value of type 'URLSession' (aka 'AnyObject') has no member 'upload'
118 | #else
119 | if #available(iOS 15.0, tvOS 15.0, watchOS 8.0, macOS 12.0, *) {
120 | res = try await session.upload(
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'upload'
121 | for: urlRequest,
122 | from: data,
/host/spi-builder-workspace/Sources/SwiftHttp/UrlSessionHttpClient.swift:123:31: error: 'nil' requires a contextual type
121 | for: urlRequest,
122 | from: data,
123 | delegate: nil
| `- error: 'nil' requires a contextual type
124 | )
125 | }
/host/spi-builder-workspace/Sources/SwiftHttp/UrlSessionHttpClient.swift:128:29: error: value of type 'URLSession' (aka 'AnyObject') has no member 'uploadTask'
126 | else {
127 | res = try await asyncMethod(with: urlRequest) {
128 | session.uploadTask(
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'uploadTask'
129 | with: $0,
130 | from: data,
/host/spi-builder-workspace/Sources/SwiftHttp/UrlSessionHttpClient.swift:161:24: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
159 | let urlRequest = req.urlRequest
160 | logger.info(.init(stringLiteral: urlRequest.curlString))
161 | let res: (URL, URLResponse)
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
162 | #if os(Linux)
163 | res = try await asyncMethod(with: urlRequest, session.downloadTask)
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
| `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SwiftHttp/UrlSessionHttpClient.swift:166:41: error: value of type 'URLSession' (aka 'AnyObject') has no member 'download'
164 | #else
165 | if #available(iOS 15.0, tvOS 15.0, watchOS 8.0, macOS 12.0, *) {
166 | res = try await session.download(for: urlRequest, delegate: nil)
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'download'
167 | }
168 | else {
/host/spi-builder-workspace/Sources/SwiftHttp/UrlSessionHttpClient.swift:166:77: error: 'nil' requires a contextual type
164 | #else
165 | if #available(iOS 15.0, tvOS 15.0, watchOS 8.0, macOS 12.0, *) {
166 | res = try await session.download(for: urlRequest, delegate: nil)
| `- error: 'nil' requires a contextual type
167 | }
168 | else {
/host/spi-builder-workspace/Sources/SwiftHttp/UrlSessionHttpClient.swift:171:29: error: value of type 'URLSession' (aka 'AnyObject') has no member 'downloadTask'
169 | res = try await asyncMethod(
170 | with: urlRequest,
171 | session.downloadTask
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'downloadTask'
172 | )
173 | }
/host/spi-builder-workspace/Sources/SwiftHttp/UrlSessionHttpClient.swift:201:56: error: value of type '_' expected to be instance of class or class-constrained type
199 | method(urlRequest) { t, response, error in
200 | if let t = t, let response = response {
201 | continuation.resume(returning: (t, response))
| `- error: value of type '_' expected to be instance of class or class-constrained type
202 | }
203 | else {
[17/39] Compiling SwiftHttp UrlSessionHttpClient.swift
/host/spi-builder-workspace/Sources/SwiftHttp/URLRequest+cURL.swift:14:11: error: cannot find type 'URLRequest' in scope
12 | #endif
13 |
14 | extension URLRequest {
| `- error: cannot find type 'URLRequest' in scope
15 |
16 | /// Returns the curl command representation of a URLRequest
/host/spi-builder-workspace/Sources/SwiftHttp/UrlSessionHttpClient.swift:20:18: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
18 | private let loggerLabel = "com.binarybirds.swift-http"
19 |
20 | let session: URLSession
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
21 | let logger: Logger
22 |
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SwiftHttp/UrlSessionHttpClient.swift:32:18: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
30 | ///
31 | public init(
32 | session: URLSession = .shared,
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
33 | logLevel: Logger.Level = .critical
34 | ) {
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SwiftHttp/UrlSessionHttpClient.swift:32:32: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
30 | ///
31 | public init(
32 | session: URLSession = .shared,
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
33 | logLevel: Logger.Level = .critical
34 | ) {
/host/spi-builder-workspace/Sources/SwiftHttp/UrlSessionHttpClient.swift:52:26: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
50 | @_disfavoredOverload
51 | @available(*, deprecated, message: "Use init(session:logLevel:) instead.")
52 | public init(session: URLSession = .shared, log: Bool = false) {
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
53 | var logger = Logger(label: loggerLabel)
54 | logger.logLevel = log ? .info : .critical
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SwiftHttp/UrlSessionHttpClient.swift:52:40: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
50 | @_disfavoredOverload
51 | @available(*, deprecated, message: "Use init(session:logLevel:) instead.")
52 | public init(session: URLSession = .shared, log: Bool = false) {
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
53 | var logger = Logger(label: loggerLabel)
54 | logger.logLevel = log ? .info : .critical
/host/spi-builder-workspace/Sources/SwiftHttp/UrlSessionHttpClient.swift:193:26: error: cannot find type 'URLRequest' in scope
191 |
192 | private func asyncMethod<T, S: URLSessionTask>(
193 | with urlRequest: URLRequest,
| `- error: cannot find type 'URLRequest' in scope
194 | _ method: @escaping (
195 | URLRequest, @escaping @Sendable (T?, URLResponse?, Error?) -> Void
/host/spi-builder-workspace/Sources/SwiftHttp/UrlSessionHttpClient.swift:195:13: error: cannot find type 'URLRequest' in scope
193 | with urlRequest: URLRequest,
194 | _ method: @escaping (
195 | URLRequest, @escaping @Sendable (T?, URLResponse?, Error?) -> Void
| `- error: cannot find type 'URLRequest' in scope
196 | ) -> S
197 | ) async throws -> (T, URLResponse) {
/host/spi-builder-workspace/Sources/SwiftHttp/UrlSessionHttpClient.swift:192:36: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
190 | }
191 |
192 | private func asyncMethod<T, S: URLSessionTask>(
| `- error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
193 | with urlRequest: URLRequest,
194 | _ method: @escaping (
Foundation.URLSessionTask:2:18: note: 'URLSessionTask' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionTask = AnyObject
| `- note: 'URLSessionTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SwiftHttp/UrlSessionHttpClient.swift:197:27: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
195 | URLRequest, @escaping @Sendable (T?, URLResponse?, Error?) -> Void
196 | ) -> S
197 | ) async throws -> (T, URLResponse) {
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
198 | try await withCheckedThrowingContinuation { continuation in
199 | method(urlRequest) { t, response, error in
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
| `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SwiftHttp/HttpRequest.swift:33:28: error: cannot find type 'URLRequest' in scope
31 |
32 | /// Converts a HttpRequest to a URLRequest
33 | public var urlRequest: URLRequest {
| `- error: cannot find type 'URLRequest' in scope
34 | var request = URLRequest(url: url.url)
35 | request.httpMethod = method.rawValue.uppercased()
/host/spi-builder-workspace/Sources/SwiftHttp/UrlSessionHttpClient.swift:72:25: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
70 | let urlRequest = req.urlRequest
71 | logger.info(.init(stringLiteral: urlRequest.curlString))
72 | let res: (Data, URLResponse)
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
73 |
74 | #if os(Linux)
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
| `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SwiftHttp/UrlSessionHttpClient.swift:78:41: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
76 | #else
77 | if #available(iOS 15.0, tvOS 15.0, watchOS 8.0, macOS 12.0, *) {
78 | res = try await session.data(for: urlRequest)
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
79 | }
80 | else {
/host/spi-builder-workspace/Sources/SwiftHttp/UrlSessionHttpClient.swift:81:71: error: value of type 'URLSession' (aka 'AnyObject') has no member 'dataTask'
79 | }
80 | else {
81 | res = try await asyncMethod(with: urlRequest, session.dataTask)
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'dataTask'
82 | }
83 | #endif
/host/spi-builder-workspace/Sources/SwiftHttp/UrlSessionHttpClient.swift:112:25: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
110 | }
111 | logger.info(.init(stringLiteral: urlRequest.curlString))
112 | let res: (Data, URLResponse)
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
113 |
114 | #if os(Linux)
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
| `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SwiftHttp/UrlSessionHttpClient.swift:120:41: error: value of type 'URLSession' (aka 'AnyObject') has no member 'upload'
118 | #else
119 | if #available(iOS 15.0, tvOS 15.0, watchOS 8.0, macOS 12.0, *) {
120 | res = try await session.upload(
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'upload'
121 | for: urlRequest,
122 | from: data,
/host/spi-builder-workspace/Sources/SwiftHttp/UrlSessionHttpClient.swift:123:31: error: 'nil' requires a contextual type
121 | for: urlRequest,
122 | from: data,
123 | delegate: nil
| `- error: 'nil' requires a contextual type
124 | )
125 | }
/host/spi-builder-workspace/Sources/SwiftHttp/UrlSessionHttpClient.swift:128:29: error: value of type 'URLSession' (aka 'AnyObject') has no member 'uploadTask'
126 | else {
127 | res = try await asyncMethod(with: urlRequest) {
128 | session.uploadTask(
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'uploadTask'
129 | with: $0,
130 | from: data,
/host/spi-builder-workspace/Sources/SwiftHttp/UrlSessionHttpClient.swift:161:24: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
159 | let urlRequest = req.urlRequest
160 | logger.info(.init(stringLiteral: urlRequest.curlString))
161 | let res: (URL, URLResponse)
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
162 | #if os(Linux)
163 | res = try await asyncMethod(with: urlRequest, session.downloadTask)
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
| `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SwiftHttp/UrlSessionHttpClient.swift:166:41: error: value of type 'URLSession' (aka 'AnyObject') has no member 'download'
164 | #else
165 | if #available(iOS 15.0, tvOS 15.0, watchOS 8.0, macOS 12.0, *) {
166 | res = try await session.download(for: urlRequest, delegate: nil)
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'download'
167 | }
168 | else {
/host/spi-builder-workspace/Sources/SwiftHttp/UrlSessionHttpClient.swift:166:77: error: 'nil' requires a contextual type
164 | #else
165 | if #available(iOS 15.0, tvOS 15.0, watchOS 8.0, macOS 12.0, *) {
166 | res = try await session.download(for: urlRequest, delegate: nil)
| `- error: 'nil' requires a contextual type
167 | }
168 | else {
/host/spi-builder-workspace/Sources/SwiftHttp/UrlSessionHttpClient.swift:171:29: error: value of type 'URLSession' (aka 'AnyObject') has no member 'downloadTask'
169 | res = try await asyncMethod(
170 | with: urlRequest,
171 | session.downloadTask
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'downloadTask'
172 | )
173 | }
/host/spi-builder-workspace/Sources/SwiftHttp/UrlSessionHttpClient.swift:201:56: error: value of type '_' expected to be instance of class or class-constrained type
199 | method(urlRequest) { t, response, error in
200 | if let t = t, let response = response {
201 | continuation.resume(returning: (t, response))
| `- error: value of type '_' expected to be instance of class or class-constrained type
202 | }
203 | else {
[18/39] Compiling SwiftHttp HttpRawPipeline.swift
/host/spi-builder-workspace/Sources/SwiftHttp/HttpRawResponse.swift:50:33: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
48 | /// - Throws: `HttpError` if something was wrong with the tuple values
49 | ///
50 | public init(_ tuple: (Data, URLResponse)) throws {
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
51 | guard let response = tuple.1 as? HTTPURLResponse else {
52 | throw HttpError.invalidResponse
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
| `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SwiftHttp/HttpRawResponse.swift:51:38: warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
49 | ///
50 | public init(_ tuple: (Data, URLResponse)) throws {
51 | guard let response = tuple.1 as? HTTPURLResponse else {
| `- warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
52 | throw HttpError.invalidResponse
53 | }
/host/spi-builder-workspace/Sources/SwiftHttp/HttpRawResponse.swift:51:42: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
49 | ///
50 | public init(_ tuple: (Data, URLResponse)) throws {
51 | guard let response = tuple.1 as? HTTPURLResponse else {
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
52 | throw HttpError.invalidResponse
53 | }
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
| `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SwiftHttp/HttpRawResponse.swift:55:32: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'allHeaderFields'
53 | }
54 | var headers: [HttpHeaderKey: String] = [:]
55 | for header in response.allHeaderFields {
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'allHeaderFields'
56 | let key = String(describing: header.key)
57 | let value = String(describing: header.value)
/host/spi-builder-workspace/Sources/SwiftHttp/HttpRawResponse.swift:61:66: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
59 | headers[headerKey] = value
60 | }
61 | guard let statusCode = HttpStatusCode(rawValue: response.statusCode)
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
62 | else {
63 | throw HttpError.unknownStatusCode
/host/spi-builder-workspace/Sources/SwiftHttp/HttpRequest.swift:33:28: error: cannot find type 'URLRequest' in scope
31 |
32 | /// Converts a HttpRequest to a URLRequest
33 | public var urlRequest: URLRequest {
| `- error: cannot find type 'URLRequest' in scope
34 | var request = URLRequest(url: url.url)
35 | request.httpMethod = method.rawValue.uppercased()
/host/spi-builder-workspace/Sources/SwiftHttp/HttpRequest.swift:34:23: error: cannot find 'URLRequest' in scope
32 | /// Converts a HttpRequest to a URLRequest
33 | public var urlRequest: URLRequest {
34 | var request = URLRequest(url: url.url)
| `- error: cannot find 'URLRequest' in scope
35 | request.httpMethod = method.rawValue.uppercased()
36 | request.httpBody = body
[19/39] Compiling SwiftHttp HttpRawRequest.swift
/host/spi-builder-workspace/Sources/SwiftHttp/HttpRawResponse.swift:50:33: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
48 | /// - Throws: `HttpError` if something was wrong with the tuple values
49 | ///
50 | public init(_ tuple: (Data, URLResponse)) throws {
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
51 | guard let response = tuple.1 as? HTTPURLResponse else {
52 | throw HttpError.invalidResponse
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
| `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SwiftHttp/HttpRawResponse.swift:51:38: warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
49 | ///
50 | public init(_ tuple: (Data, URLResponse)) throws {
51 | guard let response = tuple.1 as? HTTPURLResponse else {
| `- warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
52 | throw HttpError.invalidResponse
53 | }
/host/spi-builder-workspace/Sources/SwiftHttp/HttpRawResponse.swift:51:42: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
49 | ///
50 | public init(_ tuple: (Data, URLResponse)) throws {
51 | guard let response = tuple.1 as? HTTPURLResponse else {
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
52 | throw HttpError.invalidResponse
53 | }
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
| `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SwiftHttp/HttpRawResponse.swift:55:32: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'allHeaderFields'
53 | }
54 | var headers: [HttpHeaderKey: String] = [:]
55 | for header in response.allHeaderFields {
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'allHeaderFields'
56 | let key = String(describing: header.key)
57 | let value = String(describing: header.value)
/host/spi-builder-workspace/Sources/SwiftHttp/HttpRawResponse.swift:61:66: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
59 | headers[headerKey] = value
60 | }
61 | guard let statusCode = HttpStatusCode(rawValue: response.statusCode)
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
62 | else {
63 | throw HttpError.unknownStatusCode
/host/spi-builder-workspace/Sources/SwiftHttp/HttpRequest.swift:33:28: error: cannot find type 'URLRequest' in scope
31 |
32 | /// Converts a HttpRequest to a URLRequest
33 | public var urlRequest: URLRequest {
| `- error: cannot find type 'URLRequest' in scope
34 | var request = URLRequest(url: url.url)
35 | request.httpMethod = method.rawValue.uppercased()
/host/spi-builder-workspace/Sources/SwiftHttp/HttpRequest.swift:34:23: error: cannot find 'URLRequest' in scope
32 | /// Converts a HttpRequest to a URLRequest
33 | public var urlRequest: URLRequest {
34 | var request = URLRequest(url: url.url)
| `- error: cannot find 'URLRequest' in scope
35 | request.httpMethod = method.rawValue.uppercased()
36 | request.httpBody = body
[20/39] Compiling SwiftHttp HttpRawResponse.swift
/host/spi-builder-workspace/Sources/SwiftHttp/HttpRawResponse.swift:50:33: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
48 | /// - Throws: `HttpError` if something was wrong with the tuple values
49 | ///
50 | public init(_ tuple: (Data, URLResponse)) throws {
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
51 | guard let response = tuple.1 as? HTTPURLResponse else {
52 | throw HttpError.invalidResponse
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
| `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SwiftHttp/HttpRawResponse.swift:51:38: warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
49 | ///
50 | public init(_ tuple: (Data, URLResponse)) throws {
51 | guard let response = tuple.1 as? HTTPURLResponse else {
| `- warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
52 | throw HttpError.invalidResponse
53 | }
/host/spi-builder-workspace/Sources/SwiftHttp/HttpRawResponse.swift:51:42: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
49 | ///
50 | public init(_ tuple: (Data, URLResponse)) throws {
51 | guard let response = tuple.1 as? HTTPURLResponse else {
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
52 | throw HttpError.invalidResponse
53 | }
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
| `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SwiftHttp/HttpRawResponse.swift:55:32: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'allHeaderFields'
53 | }
54 | var headers: [HttpHeaderKey: String] = [:]
55 | for header in response.allHeaderFields {
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'allHeaderFields'
56 | let key = String(describing: header.key)
57 | let value = String(describing: header.value)
/host/spi-builder-workspace/Sources/SwiftHttp/HttpRawResponse.swift:61:66: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
59 | headers[headerKey] = value
60 | }
61 | guard let statusCode = HttpStatusCode(rawValue: response.statusCode)
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
62 | else {
63 | throw HttpError.unknownStatusCode
/host/spi-builder-workspace/Sources/SwiftHttp/HttpRequest.swift:33:28: error: cannot find type 'URLRequest' in scope
31 |
32 | /// Converts a HttpRequest to a URLRequest
33 | public var urlRequest: URLRequest {
| `- error: cannot find type 'URLRequest' in scope
34 | var request = URLRequest(url: url.url)
35 | request.httpMethod = method.rawValue.uppercased()
/host/spi-builder-workspace/Sources/SwiftHttp/HttpRequest.swift:34:23: error: cannot find 'URLRequest' in scope
32 | /// Converts a HttpRequest to a URLRequest
33 | public var urlRequest: URLRequest {
34 | var request = URLRequest(url: url.url)
| `- error: cannot find 'URLRequest' in scope
35 | request.httpMethod = method.rawValue.uppercased()
36 | request.httpBody = body
[21/39] Compiling SwiftHttp HttpRequest.swift
/host/spi-builder-workspace/Sources/SwiftHttp/HttpRawResponse.swift:50:33: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
48 | /// - Throws: `HttpError` if something was wrong with the tuple values
49 | ///
50 | public init(_ tuple: (Data, URLResponse)) throws {
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
51 | guard let response = tuple.1 as? HTTPURLResponse else {
52 | throw HttpError.invalidResponse
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
| `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SwiftHttp/HttpRawResponse.swift:51:38: warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
49 | ///
50 | public init(_ tuple: (Data, URLResponse)) throws {
51 | guard let response = tuple.1 as? HTTPURLResponse else {
| `- warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
52 | throw HttpError.invalidResponse
53 | }
/host/spi-builder-workspace/Sources/SwiftHttp/HttpRawResponse.swift:51:42: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
49 | ///
50 | public init(_ tuple: (Data, URLResponse)) throws {
51 | guard let response = tuple.1 as? HTTPURLResponse else {
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
52 | throw HttpError.invalidResponse
53 | }
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
| `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SwiftHttp/HttpRawResponse.swift:55:32: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'allHeaderFields'
53 | }
54 | var headers: [HttpHeaderKey: String] = [:]
55 | for header in response.allHeaderFields {
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'allHeaderFields'
56 | let key = String(describing: header.key)
57 | let value = String(describing: header.value)
/host/spi-builder-workspace/Sources/SwiftHttp/HttpRawResponse.swift:61:66: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
59 | headers[headerKey] = value
60 | }
61 | guard let statusCode = HttpStatusCode(rawValue: response.statusCode)
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
62 | else {
63 | throw HttpError.unknownStatusCode
/host/spi-builder-workspace/Sources/SwiftHttp/HttpRequest.swift:33:28: error: cannot find type 'URLRequest' in scope
31 |
32 | /// Converts a HttpRequest to a URLRequest
33 | public var urlRequest: URLRequest {
| `- error: cannot find type 'URLRequest' in scope
34 | var request = URLRequest(url: url.url)
35 | request.httpMethod = method.rawValue.uppercased()
/host/spi-builder-workspace/Sources/SwiftHttp/HttpRequest.swift:34:23: error: cannot find 'URLRequest' in scope
32 | /// Converts a HttpRequest to a URLRequest
33 | public var urlRequest: URLRequest {
34 | var request = URLRequest(url: url.url)
| `- error: cannot find 'URLRequest' in scope
35 | request.httpMethod = method.rawValue.uppercased()
36 | request.httpBody = body
[22/39] Compiling SwiftHttp HttpResponseValidator.swift
[23/39] Compiling SwiftHttp HttpStatusCode.swift
[24/39] Compiling SwiftHttp HttpStatusCodeValidator.swift
[25/39] Compiling SwiftHttp HttpRequestEncoder.swift
[26/39] Compiling SwiftHttp HttpRequestPipeline.swift
[27/39] Compiling SwiftHttp HttpRequestTransformer.swift
[28/39] Compiling SwiftHttp HttpResponse.swift
[29/39] Compiling SwiftHttp HttpResponseDecoder.swift
[30/39] Compiling SwiftHttp HttpResponseTransformer.swift
[31/39] Compiling SwiftHttp HttpResponseValidation.swift
[32/39] Compiling SwiftHttp HttpDataDecoder.swift
[33/39] Compiling SwiftHttp HttpDataEncoder.swift
[34/39] Compiling SwiftHttp HttpDecodablePipeline.swift
[35/39] Compiling SwiftHttp HttpEncodablePipeline.swift
[36/39] Compiling SwiftHttp Data+Logger.swift
[37/39] Compiling SwiftHttp HttpClient.swift
[38/39] Compiling SwiftHttp HttpCodablePipeline.swift
[39/39] Compiling SwiftHttp HttpCodablePipelineCollection.swift
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-0":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:wasm-6.1-latest swift build --swift-sdk wasm32-unknown-wasi 2>&1
wasm-6.1-latest: Pulling from finestructure/spi-images
Digest: sha256:7e37457820e5f17452a98118754f345f2619722c485f2db0d8b666940a83afd2
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:wasm-6.1-latest
[0/1] Planning build
Building for debugging...
[0/1] Write swift-version-24593BA9C3E375BF.txt
[2/6] Compiling Logging MetadataProvider.swift
[3/6] Compiling Logging LogHandler.swift
[4/6] Compiling Logging Locks.swift
[5/6] Emitting module Logging
[6/6] Compiling Logging Logging.swift
[8/34] Compiling SwiftHttp HttpResponseDecoder.swift
[9/34] Compiling SwiftHttp HttpResponseTransformer.swift
[10/34] Compiling SwiftHttp HttpResponseValidation.swift
error: emit-module command failed with exit code 1 (use -v to see invocation)
[11/37] Emitting module SwiftHttp
/host/spi-builder-workspace/Sources/SwiftHttp/HttpRawResponse.swift:50:33: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
48 | /// - Throws: `HttpError` if something was wrong with the tuple values
49 | ///
50 | public init(_ tuple: (Data, URLResponse)) throws {
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
51 | guard let response = tuple.1 as? HTTPURLResponse else {
52 | throw HttpError.invalidResponse
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
| `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SwiftHttp/HttpRequest.swift:33:28: error: cannot find type 'URLRequest' in scope
31 |
32 | /// Converts a HttpRequest to a URLRequest
33 | public var urlRequest: URLRequest {
| `- error: cannot find type 'URLRequest' in scope
34 | var request = URLRequest(url: url.url)
35 | request.httpMethod = method.rawValue.uppercased()
/host/spi-builder-workspace/Sources/SwiftHttp/URLRequest+cURL.swift:14:11: error: cannot find type 'URLRequest' in scope
12 | #endif
13 |
14 | extension URLRequest {
| `- error: cannot find type 'URLRequest' in scope
15 |
16 | /// Returns the curl command representation of a URLRequest
/host/spi-builder-workspace/Sources/SwiftHttp/UrlSessionHttpClient.swift:20:18: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
18 | private let loggerLabel = "com.binarybirds.swift-http"
19 |
20 | let session: URLSession
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
21 | let logger: Logger
22 |
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SwiftHttp/UrlSessionHttpClient.swift:32:18: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
30 | ///
31 | public init(
32 | session: URLSession = .shared,
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
33 | logLevel: Logger.Level = .critical
34 | ) {
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SwiftHttp/UrlSessionHttpClient.swift:32:32: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
30 | ///
31 | public init(
32 | session: URLSession = .shared,
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
33 | logLevel: Logger.Level = .critical
34 | ) {
/host/spi-builder-workspace/Sources/SwiftHttp/UrlSessionHttpClient.swift:52:26: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
50 | @_disfavoredOverload
51 | @available(*, deprecated, message: "Use init(session:logLevel:) instead.")
52 | public init(session: URLSession = .shared, log: Bool = false) {
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
53 | var logger = Logger(label: loggerLabel)
54 | logger.logLevel = log ? .info : .critical
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SwiftHttp/UrlSessionHttpClient.swift:52:40: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
50 | @_disfavoredOverload
51 | @available(*, deprecated, message: "Use init(session:logLevel:) instead.")
52 | public init(session: URLSession = .shared, log: Bool = false) {
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
53 | var logger = Logger(label: loggerLabel)
54 | logger.logLevel = log ? .info : .critical
/host/spi-builder-workspace/Sources/SwiftHttp/UrlSessionHttpClient.swift:193:26: error: cannot find type 'URLRequest' in scope
191 |
192 | private func asyncMethod<T, S: URLSessionTask>(
193 | with urlRequest: URLRequest,
| `- error: cannot find type 'URLRequest' in scope
194 | _ method: @escaping (
195 | URLRequest, @escaping @Sendable (T?, URLResponse?, Error?) -> Void
/host/spi-builder-workspace/Sources/SwiftHttp/UrlSessionHttpClient.swift:195:13: error: cannot find type 'URLRequest' in scope
193 | with urlRequest: URLRequest,
194 | _ method: @escaping (
195 | URLRequest, @escaping @Sendable (T?, URLResponse?, Error?) -> Void
| `- error: cannot find type 'URLRequest' in scope
196 | ) -> S
197 | ) async throws -> (T, URLResponse) {
/host/spi-builder-workspace/Sources/SwiftHttp/UrlSessionHttpClient.swift:192:36: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
190 | }
191 |
192 | private func asyncMethod<T, S: URLSessionTask>(
| `- error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
193 | with urlRequest: URLRequest,
194 | _ method: @escaping (
Foundation.URLSessionTask:2:18: note: 'URLSessionTask' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionTask = AnyObject
| `- note: 'URLSessionTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SwiftHttp/UrlSessionHttpClient.swift:197:27: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
195 | URLRequest, @escaping @Sendable (T?, URLResponse?, Error?) -> Void
196 | ) -> S
197 | ) async throws -> (T, URLResponse) {
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
198 | try await withCheckedThrowingContinuation { continuation in
199 | method(urlRequest) { t, response, error in
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
| `- note: 'URLResponse' has been explicitly marked unavailable here
[12/37] Compiling SwiftHttp HttpRequestEncoder.swift
[13/37] Compiling SwiftHttp HttpRequestPipeline.swift
[14/37] Compiling SwiftHttp HttpRequestTransformer.swift
[15/37] Compiling SwiftHttp HttpResponse.swift
[16/37] Compiling SwiftHttp HttpDataDecoder.swift
[17/37] Compiling SwiftHttp HttpDataEncoder.swift
[18/37] Compiling SwiftHttp HttpDecodablePipeline.swift
[19/37] Compiling SwiftHttp HttpEncodablePipeline.swift
[20/37] Compiling SwiftHttp HttpRawPipeline.swift
/host/spi-builder-workspace/Sources/SwiftHttp/HttpRawResponse.swift:50:33: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
48 | /// - Throws: `HttpError` if something was wrong with the tuple values
49 | ///
50 | public init(_ tuple: (Data, URLResponse)) throws {
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
51 | guard let response = tuple.1 as? HTTPURLResponse else {
52 | throw HttpError.invalidResponse
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
| `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SwiftHttp/HttpRawResponse.swift:51:38: warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
49 | ///
50 | public init(_ tuple: (Data, URLResponse)) throws {
51 | guard let response = tuple.1 as? HTTPURLResponse else {
| `- warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
52 | throw HttpError.invalidResponse
53 | }
/host/spi-builder-workspace/Sources/SwiftHttp/HttpRawResponse.swift:51:42: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
49 | ///
50 | public init(_ tuple: (Data, URLResponse)) throws {
51 | guard let response = tuple.1 as? HTTPURLResponse else {
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
52 | throw HttpError.invalidResponse
53 | }
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
| `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SwiftHttp/HttpRawResponse.swift:55:32: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'allHeaderFields'
53 | }
54 | var headers: [HttpHeaderKey: String] = [:]
55 | for header in response.allHeaderFields {
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'allHeaderFields'
56 | let key = String(describing: header.key)
57 | let value = String(describing: header.value)
/host/spi-builder-workspace/Sources/SwiftHttp/HttpRawResponse.swift:61:66: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
59 | headers[headerKey] = value
60 | }
61 | guard let statusCode = HttpStatusCode(rawValue: response.statusCode)
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
62 | else {
63 | throw HttpError.unknownStatusCode
/host/spi-builder-workspace/Sources/SwiftHttp/HttpRequest.swift:33:28: error: cannot find type 'URLRequest' in scope
31 |
32 | /// Converts a HttpRequest to a URLRequest
33 | public var urlRequest: URLRequest {
| `- error: cannot find type 'URLRequest' in scope
34 | var request = URLRequest(url: url.url)
35 | request.httpMethod = method.rawValue.uppercased()
/host/spi-builder-workspace/Sources/SwiftHttp/HttpRequest.swift:34:23: error: cannot find 'URLRequest' in scope
32 | /// Converts a HttpRequest to a URLRequest
33 | public var urlRequest: URLRequest {
34 | var request = URLRequest(url: url.url)
| `- error: cannot find 'URLRequest' in scope
35 | request.httpMethod = method.rawValue.uppercased()
36 | request.httpBody = body
[21/37] Compiling SwiftHttp HttpRawRequest.swift
/host/spi-builder-workspace/Sources/SwiftHttp/HttpRawResponse.swift:50:33: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
48 | /// - Throws: `HttpError` if something was wrong with the tuple values
49 | ///
50 | public init(_ tuple: (Data, URLResponse)) throws {
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
51 | guard let response = tuple.1 as? HTTPURLResponse else {
52 | throw HttpError.invalidResponse
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
| `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SwiftHttp/HttpRawResponse.swift:51:38: warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
49 | ///
50 | public init(_ tuple: (Data, URLResponse)) throws {
51 | guard let response = tuple.1 as? HTTPURLResponse else {
| `- warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
52 | throw HttpError.invalidResponse
53 | }
/host/spi-builder-workspace/Sources/SwiftHttp/HttpRawResponse.swift:51:42: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
49 | ///
50 | public init(_ tuple: (Data, URLResponse)) throws {
51 | guard let response = tuple.1 as? HTTPURLResponse else {
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
52 | throw HttpError.invalidResponse
53 | }
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
| `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SwiftHttp/HttpRawResponse.swift:55:32: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'allHeaderFields'
53 | }
54 | var headers: [HttpHeaderKey: String] = [:]
55 | for header in response.allHeaderFields {
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'allHeaderFields'
56 | let key = String(describing: header.key)
57 | let value = String(describing: header.value)
/host/spi-builder-workspace/Sources/SwiftHttp/HttpRawResponse.swift:61:66: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
59 | headers[headerKey] = value
60 | }
61 | guard let statusCode = HttpStatusCode(rawValue: response.statusCode)
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
62 | else {
63 | throw HttpError.unknownStatusCode
/host/spi-builder-workspace/Sources/SwiftHttp/HttpRequest.swift:33:28: error: cannot find type 'URLRequest' in scope
31 |
32 | /// Converts a HttpRequest to a URLRequest
33 | public var urlRequest: URLRequest {
| `- error: cannot find type 'URLRequest' in scope
34 | var request = URLRequest(url: url.url)
35 | request.httpMethod = method.rawValue.uppercased()
/host/spi-builder-workspace/Sources/SwiftHttp/HttpRequest.swift:34:23: error: cannot find 'URLRequest' in scope
32 | /// Converts a HttpRequest to a URLRequest
33 | public var urlRequest: URLRequest {
34 | var request = URLRequest(url: url.url)
| `- error: cannot find 'URLRequest' in scope
35 | request.httpMethod = method.rawValue.uppercased()
36 | request.httpBody = body
[22/37] Compiling SwiftHttp HttpRawResponse.swift
/host/spi-builder-workspace/Sources/SwiftHttp/HttpRawResponse.swift:50:33: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
48 | /// - Throws: `HttpError` if something was wrong with the tuple values
49 | ///
50 | public init(_ tuple: (Data, URLResponse)) throws {
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
51 | guard let response = tuple.1 as? HTTPURLResponse else {
52 | throw HttpError.invalidResponse
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
| `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SwiftHttp/HttpRawResponse.swift:51:38: warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
49 | ///
50 | public init(_ tuple: (Data, URLResponse)) throws {
51 | guard let response = tuple.1 as? HTTPURLResponse else {
| `- warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
52 | throw HttpError.invalidResponse
53 | }
/host/spi-builder-workspace/Sources/SwiftHttp/HttpRawResponse.swift:51:42: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
49 | ///
50 | public init(_ tuple: (Data, URLResponse)) throws {
51 | guard let response = tuple.1 as? HTTPURLResponse else {
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
52 | throw HttpError.invalidResponse
53 | }
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
| `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SwiftHttp/HttpRawResponse.swift:55:32: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'allHeaderFields'
53 | }
54 | var headers: [HttpHeaderKey: String] = [:]
55 | for header in response.allHeaderFields {
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'allHeaderFields'
56 | let key = String(describing: header.key)
57 | let value = String(describing: header.value)
/host/spi-builder-workspace/Sources/SwiftHttp/HttpRawResponse.swift:61:66: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
59 | headers[headerKey] = value
60 | }
61 | guard let statusCode = HttpStatusCode(rawValue: response.statusCode)
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
62 | else {
63 | throw HttpError.unknownStatusCode
/host/spi-builder-workspace/Sources/SwiftHttp/HttpRequest.swift:33:28: error: cannot find type 'URLRequest' in scope
31 |
32 | /// Converts a HttpRequest to a URLRequest
33 | public var urlRequest: URLRequest {
| `- error: cannot find type 'URLRequest' in scope
34 | var request = URLRequest(url: url.url)
35 | request.httpMethod = method.rawValue.uppercased()
/host/spi-builder-workspace/Sources/SwiftHttp/HttpRequest.swift:34:23: error: cannot find 'URLRequest' in scope
32 | /// Converts a HttpRequest to a URLRequest
33 | public var urlRequest: URLRequest {
34 | var request = URLRequest(url: url.url)
| `- error: cannot find 'URLRequest' in scope
35 | request.httpMethod = method.rawValue.uppercased()
36 | request.httpBody = body
[23/37] Compiling SwiftHttp HttpRequest.swift
/host/spi-builder-workspace/Sources/SwiftHttp/HttpRawResponse.swift:50:33: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
48 | /// - Throws: `HttpError` if something was wrong with the tuple values
49 | ///
50 | public init(_ tuple: (Data, URLResponse)) throws {
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
51 | guard let response = tuple.1 as? HTTPURLResponse else {
52 | throw HttpError.invalidResponse
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
| `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SwiftHttp/HttpRawResponse.swift:51:38: warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
49 | ///
50 | public init(_ tuple: (Data, URLResponse)) throws {
51 | guard let response = tuple.1 as? HTTPURLResponse else {
| `- warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
52 | throw HttpError.invalidResponse
53 | }
/host/spi-builder-workspace/Sources/SwiftHttp/HttpRawResponse.swift:51:42: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
49 | ///
50 | public init(_ tuple: (Data, URLResponse)) throws {
51 | guard let response = tuple.1 as? HTTPURLResponse else {
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
52 | throw HttpError.invalidResponse
53 | }
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
| `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SwiftHttp/HttpRawResponse.swift:55:32: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'allHeaderFields'
53 | }
54 | var headers: [HttpHeaderKey: String] = [:]
55 | for header in response.allHeaderFields {
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'allHeaderFields'
56 | let key = String(describing: header.key)
57 | let value = String(describing: header.value)
/host/spi-builder-workspace/Sources/SwiftHttp/HttpRawResponse.swift:61:66: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
59 | headers[headerKey] = value
60 | }
61 | guard let statusCode = HttpStatusCode(rawValue: response.statusCode)
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
62 | else {
63 | throw HttpError.unknownStatusCode
/host/spi-builder-workspace/Sources/SwiftHttp/HttpRequest.swift:33:28: error: cannot find type 'URLRequest' in scope
31 |
32 | /// Converts a HttpRequest to a URLRequest
33 | public var urlRequest: URLRequest {
| `- error: cannot find type 'URLRequest' in scope
34 | var request = URLRequest(url: url.url)
35 | request.httpMethod = method.rawValue.uppercased()
/host/spi-builder-workspace/Sources/SwiftHttp/HttpRequest.swift:34:23: error: cannot find 'URLRequest' in scope
32 | /// Converts a HttpRequest to a URLRequest
33 | public var urlRequest: URLRequest {
34 | var request = URLRequest(url: url.url)
| `- error: cannot find 'URLRequest' in scope
35 | request.httpMethod = method.rawValue.uppercased()
36 | request.httpBody = body
[24/37] Compiling SwiftHttp Data+Logger.swift
[25/37] Compiling SwiftHttp HttpClient.swift
[26/37] Compiling SwiftHttp HttpCodablePipeline.swift
[27/37] Compiling SwiftHttp HttpCodablePipelineCollection.swift
[28/37] Compiling SwiftHttp HttpUrl.swift
/host/spi-builder-workspace/Sources/SwiftHttp/URLRequest+cURL.swift:14:11: error: cannot find type 'URLRequest' in scope
12 | #endif
13 |
14 | extension URLRequest {
| `- error: cannot find type 'URLRequest' in scope
15 |
16 | /// Returns the curl command representation of a URLRequest
/host/spi-builder-workspace/Sources/SwiftHttp/UrlSessionHttpClient.swift:20:18: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
18 | private let loggerLabel = "com.binarybirds.swift-http"
19 |
20 | let session: URLSession
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
21 | let logger: Logger
22 |
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SwiftHttp/UrlSessionHttpClient.swift:32:18: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
30 | ///
31 | public init(
32 | session: URLSession = .shared,
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
33 | logLevel: Logger.Level = .critical
34 | ) {
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SwiftHttp/UrlSessionHttpClient.swift:32:32: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
30 | ///
31 | public init(
32 | session: URLSession = .shared,
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
33 | logLevel: Logger.Level = .critical
34 | ) {
/host/spi-builder-workspace/Sources/SwiftHttp/UrlSessionHttpClient.swift:52:26: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
50 | @_disfavoredOverload
51 | @available(*, deprecated, message: "Use init(session:logLevel:) instead.")
52 | public init(session: URLSession = .shared, log: Bool = false) {
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
53 | var logger = Logger(label: loggerLabel)
54 | logger.logLevel = log ? .info : .critical
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SwiftHttp/UrlSessionHttpClient.swift:52:40: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
50 | @_disfavoredOverload
51 | @available(*, deprecated, message: "Use init(session:logLevel:) instead.")
52 | public init(session: URLSession = .shared, log: Bool = false) {
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
53 | var logger = Logger(label: loggerLabel)
54 | logger.logLevel = log ? .info : .critical
/host/spi-builder-workspace/Sources/SwiftHttp/UrlSessionHttpClient.swift:193:26: error: cannot find type 'URLRequest' in scope
191 |
192 | private func asyncMethod<T, S: URLSessionTask>(
193 | with urlRequest: URLRequest,
| `- error: cannot find type 'URLRequest' in scope
194 | _ method: @escaping (
195 | URLRequest, @escaping @Sendable (T?, URLResponse?, Error?) -> Void
/host/spi-builder-workspace/Sources/SwiftHttp/UrlSessionHttpClient.swift:195:13: error: cannot find type 'URLRequest' in scope
193 | with urlRequest: URLRequest,
194 | _ method: @escaping (
195 | URLRequest, @escaping @Sendable (T?, URLResponse?, Error?) -> Void
| `- error: cannot find type 'URLRequest' in scope
196 | ) -> S
197 | ) async throws -> (T, URLResponse) {
/host/spi-builder-workspace/Sources/SwiftHttp/UrlSessionHttpClient.swift:192:36: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
190 | }
191 |
192 | private func asyncMethod<T, S: URLSessionTask>(
| `- error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
193 | with urlRequest: URLRequest,
194 | _ method: @escaping (
Foundation.URLSessionTask:2:18: note: 'URLSessionTask' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionTask = AnyObject
| `- note: 'URLSessionTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SwiftHttp/UrlSessionHttpClient.swift:197:27: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
195 | URLRequest, @escaping @Sendable (T?, URLResponse?, Error?) -> Void
196 | ) -> S
197 | ) async throws -> (T, URLResponse) {
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
198 | try await withCheckedThrowingContinuation { continuation in
199 | method(urlRequest) { t, response, error in
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
| `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SwiftHttp/HttpRequest.swift:33:28: error: cannot find type 'URLRequest' in scope
31 |
32 | /// Converts a HttpRequest to a URLRequest
33 | public var urlRequest: URLRequest {
| `- error: cannot find type 'URLRequest' in scope
34 | var request = URLRequest(url: url.url)
35 | request.httpMethod = method.rawValue.uppercased()
/host/spi-builder-workspace/Sources/SwiftHttp/UrlSessionHttpClient.swift:72:25: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
70 | let urlRequest = req.urlRequest
71 | logger.info(.init(stringLiteral: urlRequest.curlString))
72 | let res: (Data, URLResponse)
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
73 |
74 | #if os(Linux)
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
| `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SwiftHttp/UrlSessionHttpClient.swift:78:41: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
76 | #else
77 | if #available(iOS 15.0, tvOS 15.0, watchOS 8.0, macOS 12.0, *) {
78 | res = try await session.data(for: urlRequest)
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
79 | }
80 | else {
/host/spi-builder-workspace/Sources/SwiftHttp/UrlSessionHttpClient.swift:81:71: error: value of type 'URLSession' (aka 'AnyObject') has no member 'dataTask'
79 | }
80 | else {
81 | res = try await asyncMethod(with: urlRequest, session.dataTask)
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'dataTask'
82 | }
83 | #endif
/host/spi-builder-workspace/Sources/SwiftHttp/UrlSessionHttpClient.swift:112:25: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
110 | }
111 | logger.info(.init(stringLiteral: urlRequest.curlString))
112 | let res: (Data, URLResponse)
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
113 |
114 | #if os(Linux)
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
| `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SwiftHttp/UrlSessionHttpClient.swift:120:41: error: value of type 'URLSession' (aka 'AnyObject') has no member 'upload'
118 | #else
119 | if #available(iOS 15.0, tvOS 15.0, watchOS 8.0, macOS 12.0, *) {
120 | res = try await session.upload(
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'upload'
121 | for: urlRequest,
122 | from: data,
/host/spi-builder-workspace/Sources/SwiftHttp/UrlSessionHttpClient.swift:123:31: error: 'nil' requires a contextual type
121 | for: urlRequest,
122 | from: data,
123 | delegate: nil
| `- error: 'nil' requires a contextual type
124 | )
125 | }
/host/spi-builder-workspace/Sources/SwiftHttp/UrlSessionHttpClient.swift:128:29: error: value of type 'URLSession' (aka 'AnyObject') has no member 'uploadTask'
126 | else {
127 | res = try await asyncMethod(with: urlRequest) {
128 | session.uploadTask(
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'uploadTask'
129 | with: $0,
130 | from: data,
/host/spi-builder-workspace/Sources/SwiftHttp/UrlSessionHttpClient.swift:161:24: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
159 | let urlRequest = req.urlRequest
160 | logger.info(.init(stringLiteral: urlRequest.curlString))
161 | let res: (URL, URLResponse)
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
162 | #if os(Linux)
163 | res = try await asyncMethod(with: urlRequest, session.downloadTask)
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
| `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SwiftHttp/UrlSessionHttpClient.swift:166:41: error: value of type 'URLSession' (aka 'AnyObject') has no member 'download'
164 | #else
165 | if #available(iOS 15.0, tvOS 15.0, watchOS 8.0, macOS 12.0, *) {
166 | res = try await session.download(for: urlRequest, delegate: nil)
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'download'
167 | }
168 | else {
/host/spi-builder-workspace/Sources/SwiftHttp/UrlSessionHttpClient.swift:166:77: error: 'nil' requires a contextual type
164 | #else
165 | if #available(iOS 15.0, tvOS 15.0, watchOS 8.0, macOS 12.0, *) {
166 | res = try await session.download(for: urlRequest, delegate: nil)
| `- error: 'nil' requires a contextual type
167 | }
168 | else {
/host/spi-builder-workspace/Sources/SwiftHttp/UrlSessionHttpClient.swift:171:29: error: value of type 'URLSession' (aka 'AnyObject') has no member 'downloadTask'
169 | res = try await asyncMethod(
170 | with: urlRequest,
171 | session.downloadTask
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'downloadTask'
172 | )
173 | }
/host/spi-builder-workspace/Sources/SwiftHttp/UrlSessionHttpClient.swift:201:56: error: value of type '_' expected to be instance of class or class-constrained type
199 | method(urlRequest) { t, response, error in
200 | if let t = t, let response = response {
201 | continuation.resume(returning: (t, response))
| `- error: value of type '_' expected to be instance of class or class-constrained type
202 | }
203 | else {
[29/37] Compiling SwiftHttp URLRequest+cURL.swift
/host/spi-builder-workspace/Sources/SwiftHttp/URLRequest+cURL.swift:14:11: error: cannot find type 'URLRequest' in scope
12 | #endif
13 |
14 | extension URLRequest {
| `- error: cannot find type 'URLRequest' in scope
15 |
16 | /// Returns the curl command representation of a URLRequest
/host/spi-builder-workspace/Sources/SwiftHttp/UrlSessionHttpClient.swift:20:18: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
18 | private let loggerLabel = "com.binarybirds.swift-http"
19 |
20 | let session: URLSession
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
21 | let logger: Logger
22 |
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SwiftHttp/UrlSessionHttpClient.swift:32:18: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
30 | ///
31 | public init(
32 | session: URLSession = .shared,
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
33 | logLevel: Logger.Level = .critical
34 | ) {
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SwiftHttp/UrlSessionHttpClient.swift:32:32: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
30 | ///
31 | public init(
32 | session: URLSession = .shared,
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
33 | logLevel: Logger.Level = .critical
34 | ) {
/host/spi-builder-workspace/Sources/SwiftHttp/UrlSessionHttpClient.swift:52:26: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
50 | @_disfavoredOverload
51 | @available(*, deprecated, message: "Use init(session:logLevel:) instead.")
52 | public init(session: URLSession = .shared, log: Bool = false) {
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
53 | var logger = Logger(label: loggerLabel)
54 | logger.logLevel = log ? .info : .critical
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SwiftHttp/UrlSessionHttpClient.swift:52:40: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
50 | @_disfavoredOverload
51 | @available(*, deprecated, message: "Use init(session:logLevel:) instead.")
52 | public init(session: URLSession = .shared, log: Bool = false) {
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
53 | var logger = Logger(label: loggerLabel)
54 | logger.logLevel = log ? .info : .critical
/host/spi-builder-workspace/Sources/SwiftHttp/UrlSessionHttpClient.swift:193:26: error: cannot find type 'URLRequest' in scope
191 |
192 | private func asyncMethod<T, S: URLSessionTask>(
193 | with urlRequest: URLRequest,
| `- error: cannot find type 'URLRequest' in scope
194 | _ method: @escaping (
195 | URLRequest, @escaping @Sendable (T?, URLResponse?, Error?) -> Void
/host/spi-builder-workspace/Sources/SwiftHttp/UrlSessionHttpClient.swift:195:13: error: cannot find type 'URLRequest' in scope
193 | with urlRequest: URLRequest,
194 | _ method: @escaping (
195 | URLRequest, @escaping @Sendable (T?, URLResponse?, Error?) -> Void
| `- error: cannot find type 'URLRequest' in scope
196 | ) -> S
197 | ) async throws -> (T, URLResponse) {
/host/spi-builder-workspace/Sources/SwiftHttp/UrlSessionHttpClient.swift:192:36: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
190 | }
191 |
192 | private func asyncMethod<T, S: URLSessionTask>(
| `- error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
193 | with urlRequest: URLRequest,
194 | _ method: @escaping (
Foundation.URLSessionTask:2:18: note: 'URLSessionTask' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionTask = AnyObject
| `- note: 'URLSessionTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SwiftHttp/UrlSessionHttpClient.swift:197:27: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
195 | URLRequest, @escaping @Sendable (T?, URLResponse?, Error?) -> Void
196 | ) -> S
197 | ) async throws -> (T, URLResponse) {
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
198 | try await withCheckedThrowingContinuation { continuation in
199 | method(urlRequest) { t, response, error in
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
| `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SwiftHttp/HttpRequest.swift:33:28: error: cannot find type 'URLRequest' in scope
31 |
32 | /// Converts a HttpRequest to a URLRequest
33 | public var urlRequest: URLRequest {
| `- error: cannot find type 'URLRequest' in scope
34 | var request = URLRequest(url: url.url)
35 | request.httpMethod = method.rawValue.uppercased()
/host/spi-builder-workspace/Sources/SwiftHttp/UrlSessionHttpClient.swift:72:25: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
70 | let urlRequest = req.urlRequest
71 | logger.info(.init(stringLiteral: urlRequest.curlString))
72 | let res: (Data, URLResponse)
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
73 |
74 | #if os(Linux)
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
| `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SwiftHttp/UrlSessionHttpClient.swift:78:41: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
76 | #else
77 | if #available(iOS 15.0, tvOS 15.0, watchOS 8.0, macOS 12.0, *) {
78 | res = try await session.data(for: urlRequest)
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
79 | }
80 | else {
/host/spi-builder-workspace/Sources/SwiftHttp/UrlSessionHttpClient.swift:81:71: error: value of type 'URLSession' (aka 'AnyObject') has no member 'dataTask'
79 | }
80 | else {
81 | res = try await asyncMethod(with: urlRequest, session.dataTask)
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'dataTask'
82 | }
83 | #endif
/host/spi-builder-workspace/Sources/SwiftHttp/UrlSessionHttpClient.swift:112:25: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
110 | }
111 | logger.info(.init(stringLiteral: urlRequest.curlString))
112 | let res: (Data, URLResponse)
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
113 |
114 | #if os(Linux)
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
| `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SwiftHttp/UrlSessionHttpClient.swift:120:41: error: value of type 'URLSession' (aka 'AnyObject') has no member 'upload'
118 | #else
119 | if #available(iOS 15.0, tvOS 15.0, watchOS 8.0, macOS 12.0, *) {
120 | res = try await session.upload(
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'upload'
121 | for: urlRequest,
122 | from: data,
/host/spi-builder-workspace/Sources/SwiftHttp/UrlSessionHttpClient.swift:123:31: error: 'nil' requires a contextual type
121 | for: urlRequest,
122 | from: data,
123 | delegate: nil
| `- error: 'nil' requires a contextual type
124 | )
125 | }
/host/spi-builder-workspace/Sources/SwiftHttp/UrlSessionHttpClient.swift:128:29: error: value of type 'URLSession' (aka 'AnyObject') has no member 'uploadTask'
126 | else {
127 | res = try await asyncMethod(with: urlRequest) {
128 | session.uploadTask(
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'uploadTask'
129 | with: $0,
130 | from: data,
/host/spi-builder-workspace/Sources/SwiftHttp/UrlSessionHttpClient.swift:161:24: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
159 | let urlRequest = req.urlRequest
160 | logger.info(.init(stringLiteral: urlRequest.curlString))
161 | let res: (URL, URLResponse)
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
162 | #if os(Linux)
163 | res = try await asyncMethod(with: urlRequest, session.downloadTask)
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
| `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SwiftHttp/UrlSessionHttpClient.swift:166:41: error: value of type 'URLSession' (aka 'AnyObject') has no member 'download'
164 | #else
165 | if #available(iOS 15.0, tvOS 15.0, watchOS 8.0, macOS 12.0, *) {
166 | res = try await session.download(for: urlRequest, delegate: nil)
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'download'
167 | }
168 | else {
/host/spi-builder-workspace/Sources/SwiftHttp/UrlSessionHttpClient.swift:166:77: error: 'nil' requires a contextual type
164 | #else
165 | if #available(iOS 15.0, tvOS 15.0, watchOS 8.0, macOS 12.0, *) {
166 | res = try await session.download(for: urlRequest, delegate: nil)
| `- error: 'nil' requires a contextual type
167 | }
168 | else {
/host/spi-builder-workspace/Sources/SwiftHttp/UrlSessionHttpClient.swift:171:29: error: value of type 'URLSession' (aka 'AnyObject') has no member 'downloadTask'
169 | res = try await asyncMethod(
170 | with: urlRequest,
171 | session.downloadTask
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'downloadTask'
172 | )
173 | }
/host/spi-builder-workspace/Sources/SwiftHttp/UrlSessionHttpClient.swift:201:56: error: value of type '_' expected to be instance of class or class-constrained type
199 | method(urlRequest) { t, response, error in
200 | if let t = t, let response = response {
201 | continuation.resume(returning: (t, response))
| `- error: value of type '_' expected to be instance of class or class-constrained type
202 | }
203 | else {
[30/37] Compiling SwiftHttp UrlSessionHttpClient.swift
/host/spi-builder-workspace/Sources/SwiftHttp/URLRequest+cURL.swift:14:11: error: cannot find type 'URLRequest' in scope
12 | #endif
13 |
14 | extension URLRequest {
| `- error: cannot find type 'URLRequest' in scope
15 |
16 | /// Returns the curl command representation of a URLRequest
/host/spi-builder-workspace/Sources/SwiftHttp/UrlSessionHttpClient.swift:20:18: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
18 | private let loggerLabel = "com.binarybirds.swift-http"
19 |
20 | let session: URLSession
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
21 | let logger: Logger
22 |
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SwiftHttp/UrlSessionHttpClient.swift:32:18: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
30 | ///
31 | public init(
32 | session: URLSession = .shared,
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
33 | logLevel: Logger.Level = .critical
34 | ) {
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SwiftHttp/UrlSessionHttpClient.swift:32:32: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
30 | ///
31 | public init(
32 | session: URLSession = .shared,
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
33 | logLevel: Logger.Level = .critical
34 | ) {
/host/spi-builder-workspace/Sources/SwiftHttp/UrlSessionHttpClient.swift:52:26: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
50 | @_disfavoredOverload
51 | @available(*, deprecated, message: "Use init(session:logLevel:) instead.")
52 | public init(session: URLSession = .shared, log: Bool = false) {
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
53 | var logger = Logger(label: loggerLabel)
54 | logger.logLevel = log ? .info : .critical
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SwiftHttp/UrlSessionHttpClient.swift:52:40: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
50 | @_disfavoredOverload
51 | @available(*, deprecated, message: "Use init(session:logLevel:) instead.")
52 | public init(session: URLSession = .shared, log: Bool = false) {
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
53 | var logger = Logger(label: loggerLabel)
54 | logger.logLevel = log ? .info : .critical
/host/spi-builder-workspace/Sources/SwiftHttp/UrlSessionHttpClient.swift:193:26: error: cannot find type 'URLRequest' in scope
191 |
192 | private func asyncMethod<T, S: URLSessionTask>(
193 | with urlRequest: URLRequest,
| `- error: cannot find type 'URLRequest' in scope
194 | _ method: @escaping (
195 | URLRequest, @escaping @Sendable (T?, URLResponse?, Error?) -> Void
/host/spi-builder-workspace/Sources/SwiftHttp/UrlSessionHttpClient.swift:195:13: error: cannot find type 'URLRequest' in scope
193 | with urlRequest: URLRequest,
194 | _ method: @escaping (
195 | URLRequest, @escaping @Sendable (T?, URLResponse?, Error?) -> Void
| `- error: cannot find type 'URLRequest' in scope
196 | ) -> S
197 | ) async throws -> (T, URLResponse) {
/host/spi-builder-workspace/Sources/SwiftHttp/UrlSessionHttpClient.swift:192:36: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
190 | }
191 |
192 | private func asyncMethod<T, S: URLSessionTask>(
| `- error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
193 | with urlRequest: URLRequest,
194 | _ method: @escaping (
Foundation.URLSessionTask:2:18: note: 'URLSessionTask' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionTask = AnyObject
| `- note: 'URLSessionTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SwiftHttp/UrlSessionHttpClient.swift:197:27: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
195 | URLRequest, @escaping @Sendable (T?, URLResponse?, Error?) -> Void
196 | ) -> S
197 | ) async throws -> (T, URLResponse) {
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
198 | try await withCheckedThrowingContinuation { continuation in
199 | method(urlRequest) { t, response, error in
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
| `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SwiftHttp/HttpRequest.swift:33:28: error: cannot find type 'URLRequest' in scope
31 |
32 | /// Converts a HttpRequest to a URLRequest
33 | public var urlRequest: URLRequest {
| `- error: cannot find type 'URLRequest' in scope
34 | var request = URLRequest(url: url.url)
35 | request.httpMethod = method.rawValue.uppercased()
/host/spi-builder-workspace/Sources/SwiftHttp/UrlSessionHttpClient.swift:72:25: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
70 | let urlRequest = req.urlRequest
71 | logger.info(.init(stringLiteral: urlRequest.curlString))
72 | let res: (Data, URLResponse)
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
73 |
74 | #if os(Linux)
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
| `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SwiftHttp/UrlSessionHttpClient.swift:78:41: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
76 | #else
77 | if #available(iOS 15.0, tvOS 15.0, watchOS 8.0, macOS 12.0, *) {
78 | res = try await session.data(for: urlRequest)
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
79 | }
80 | else {
/host/spi-builder-workspace/Sources/SwiftHttp/UrlSessionHttpClient.swift:81:71: error: value of type 'URLSession' (aka 'AnyObject') has no member 'dataTask'
79 | }
80 | else {
81 | res = try await asyncMethod(with: urlRequest, session.dataTask)
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'dataTask'
82 | }
83 | #endif
/host/spi-builder-workspace/Sources/SwiftHttp/UrlSessionHttpClient.swift:112:25: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
110 | }
111 | logger.info(.init(stringLiteral: urlRequest.curlString))
112 | let res: (Data, URLResponse)
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
113 |
114 | #if os(Linux)
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
| `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SwiftHttp/UrlSessionHttpClient.swift:120:41: error: value of type 'URLSession' (aka 'AnyObject') has no member 'upload'
118 | #else
119 | if #available(iOS 15.0, tvOS 15.0, watchOS 8.0, macOS 12.0, *) {
120 | res = try await session.upload(
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'upload'
121 | for: urlRequest,
122 | from: data,
/host/spi-builder-workspace/Sources/SwiftHttp/UrlSessionHttpClient.swift:123:31: error: 'nil' requires a contextual type
121 | for: urlRequest,
122 | from: data,
123 | delegate: nil
| `- error: 'nil' requires a contextual type
124 | )
125 | }
/host/spi-builder-workspace/Sources/SwiftHttp/UrlSessionHttpClient.swift:128:29: error: value of type 'URLSession' (aka 'AnyObject') has no member 'uploadTask'
126 | else {
127 | res = try await asyncMethod(with: urlRequest) {
128 | session.uploadTask(
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'uploadTask'
129 | with: $0,
130 | from: data,
/host/spi-builder-workspace/Sources/SwiftHttp/UrlSessionHttpClient.swift:161:24: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
159 | let urlRequest = req.urlRequest
160 | logger.info(.init(stringLiteral: urlRequest.curlString))
161 | let res: (URL, URLResponse)
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
162 | #if os(Linux)
163 | res = try await asyncMethod(with: urlRequest, session.downloadTask)
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
| `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SwiftHttp/UrlSessionHttpClient.swift:166:41: error: value of type 'URLSession' (aka 'AnyObject') has no member 'download'
164 | #else
165 | if #available(iOS 15.0, tvOS 15.0, watchOS 8.0, macOS 12.0, *) {
166 | res = try await session.download(for: urlRequest, delegate: nil)
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'download'
167 | }
168 | else {
/host/spi-builder-workspace/Sources/SwiftHttp/UrlSessionHttpClient.swift:166:77: error: 'nil' requires a contextual type
164 | #else
165 | if #available(iOS 15.0, tvOS 15.0, watchOS 8.0, macOS 12.0, *) {
166 | res = try await session.download(for: urlRequest, delegate: nil)
| `- error: 'nil' requires a contextual type
167 | }
168 | else {
/host/spi-builder-workspace/Sources/SwiftHttp/UrlSessionHttpClient.swift:171:29: error: value of type 'URLSession' (aka 'AnyObject') has no member 'downloadTask'
169 | res = try await asyncMethod(
170 | with: urlRequest,
171 | session.downloadTask
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'downloadTask'
172 | )
173 | }
/host/spi-builder-workspace/Sources/SwiftHttp/UrlSessionHttpClient.swift:201:56: error: value of type '_' expected to be instance of class or class-constrained type
199 | method(urlRequest) { t, response, error in
200 | if let t = t, let response = response {
201 | continuation.resume(returning: (t, response))
| `- error: value of type '_' expected to be instance of class or class-constrained type
202 | }
203 | else {
[31/37] Compiling SwiftHttp HttpError.swift
[32/37] Compiling SwiftHttp HttpHeaderKey.swift
[33/37] Compiling SwiftHttp HttpHeaderValidator.swift
[34/37] Compiling SwiftHttp HttpMethod.swift
[35/37] Compiling SwiftHttp HttpResponseValidator.swift
[36/37] Compiling SwiftHttp HttpStatusCode.swift
[37/37] Compiling SwiftHttp HttpStatusCodeValidator.swift
BUILD FAILURE 6.1 wasm