mirror of
https://github.com/apple/swift-http-types
synced 2026-11-26 04:57:48 +00:00
Revert argument changes
This commit is contained in:
1 parent
28a5f3aaeb
commit
fee4574296
6 files changed
+12
-10
No files matched your search
@@ -65,7 +65,7 @@ extension HTTPRequest {
|
||||
}
|
||||
|
||||
extension URL {
|
||||
fileprivate init?<C1: Collection, C2: Collection, C3: Collection>(scheme: C1, authority: C2, path: C3) where C1.Element == UInt8, C2.Element == UInt8, C3.Element == UInt8 {
|
||||
fileprivate init?(scheme: some Collection<UInt8>, authority: some Collection<UInt8>, path: some Collection<UInt8>) {
|
||||
var buffer = [UInt8]()
|
||||
buffer.reserveCapacity(scheme.count + 3 + authority.count + path.count)
|
||||
buffer.append(contentsOf: scheme)
|
||||
|
||||
Reference in new issue
Block a user