mirror of
https://github.com/apple/swift-http-types
synced 2026-11-30 05:18:47 +00:00
Per PR discussion, remove platform specifiers and discontinue use of some rather than forcing other packages to change their manifests.
This commit is contained in:
6 files changed
+28
-34
No files matched your search
@@ -65,7 +65,7 @@ extension HTTPRequest {
|
||||
}
|
||||
|
||||
extension URL {
|
||||
fileprivate init?(scheme: some Collection<UInt8>, authority: some Collection<UInt8>, path: some Collection<UInt8>) {
|
||||
fileprivate init?<C1: Collection, C2: Collection, C3: Collection>(scheme: C1, authority: C2, path: C3) where C1.Element == UInt8, C2.Element == UInt8, C3.Element == UInt8 {
|
||||
var buffer = [UInt8]()
|
||||
buffer.reserveCapacity(scheme.count + 3 + authority.count + path.count)
|
||||
buffer.append(contentsOf: scheme)
|
||||
|
||||
Reference in new issue
Block a user