diff --git a/Sources/Vapor/HTTP/Headers/HTTPHeaders+Connection.swift b/Sources/Vapor/HTTP/Headers/HTTPHeaders+Connection.swift index bc62027f3..6dfc2625d 100644 --- a/Sources/Vapor/HTTP/Headers/HTTPHeaders+Connection.swift +++ b/Sources/Vapor/HTTP/Headers/HTTPHeaders+Connection.swift @@ -1,7 +1,7 @@ import NIOHTTP1 extension HTTPHeaders { - public struct Connection: ExpressibleByStringLiteral, Equatable { + public struct Connection: ExpressibleByStringLiteral, Equatable, Sendable { public static let close: Self = "close" public static let keepAlive: Self = "keep-alive" diff --git a/Sources/Vapor/HTTP/Headers/HTTPHeaders+ContentDisposition.swift b/Sources/Vapor/HTTP/Headers/HTTPHeaders+ContentDisposition.swift index 8e507ae43..bac04490b 100644 --- a/Sources/Vapor/HTTP/Headers/HTTPHeaders+ContentDisposition.swift +++ b/Sources/Vapor/HTTP/Headers/HTTPHeaders+ContentDisposition.swift @@ -20,7 +20,7 @@ extension HTTPHeaders { } public struct ContentDisposition { - public struct Value: Equatable { + public struct Value: Equatable, Sendable { public static let inline = Value(string: "inline") public static let attachment = Value(string: "attachment") public static let formData = Value(string: "form-data") diff --git a/Sources/Vapor/HTTP/Headers/HTTPHeaders+Link.swift b/Sources/Vapor/HTTP/Headers/HTTPHeaders+Link.swift index 82b312db9..d14ed8175 100644 --- a/Sources/Vapor/HTTP/Headers/HTTPHeaders+Link.swift +++ b/Sources/Vapor/HTTP/Headers/HTTPHeaders+Link.swift @@ -21,7 +21,7 @@ extension HTTPHeaders { // TODO: Support multiple relations in a single `rel` attribute, as permitted by spec. public struct Link { /// See https://www.iana.org/assignments/link-relations/link-relations.xhtml - public struct Relation: RawRepresentable, Hashable { + public struct Relation: RawRepresentable, Hashable, Sendable { public static let about = Relation("about") public static let alternate = Relation("alternate") public static let appendix = Relation("appendix") diff --git a/Sources/Vapor/HTTP/Headers/HTTPHeaders+Name.swift b/Sources/Vapor/HTTP/Headers/HTTPHeaders+Name.swift index bd9a669b5..e88fdcbdb 100644 --- a/Sources/Vapor/HTTP/Headers/HTTPHeaders+Name.swift +++ b/Sources/Vapor/HTTP/Headers/HTTPHeaders+Name.swift @@ -2,7 +2,7 @@ import NIOHTTP1 extension HTTPHeaders { /// Type used for the name of a HTTP header in the `HTTPHeaders` storage. - public struct Name: Codable, Hashable, Equatable, CustomStringConvertible, ExpressibleByStringLiteral { + public struct Name: Codable, Hashable, Equatable, CustomStringConvertible, ExpressibleByStringLiteral, Sendable { /// See `Hashable` public func hash(into hasher: inout Hasher) { self.lowercased.hash(into: &hasher) diff --git a/Sources/Vapor/Utilities/BaseN.swift b/Sources/Vapor/Utilities/BaseN.swift index 9d46927f9..e7847223b 100644 --- a/Sources/Vapor/Utilities/BaseN.swift +++ b/Sources/Vapor/Utilities/BaseN.swift @@ -7,7 +7,7 @@ import Algorithms import struct Foundation.Data -public struct BaseNEncoding { +public struct BaseNEncoding: Sendable { /// For a given base and count, calculate the number of values needed to encode the given count of bytes. @inlinable internal static func sizeEnc(for bits: Int, count: Int) -> Int {