NetrcAuthorizationProvider
AuthorizationProvider.swift:82final class NetrcAuthorizationProvider
final class NetrcAuthorizationProvider
import Basics
protocol AuthorizationProvider : Sendable
protocol AuthorizationWriter
protocol Sendable
init(path: AbsolutePath, fileSystem: FileSystem) throws
func addOrUpdate(for url: URL, user: String, password: String, persist: Bool = true, callback: @escaping (Result<Void, Error>) -> Void)
func authentication(for url: URL) -> (user: String, password: String)?
func remove(for url: URL, callback: @escaping (Result<Void, Error>) -> Void)
func addOrUpdate(for url: URL, user: String, password: String, persist: Bool = true) async throws
@Sendable func httpAuthorizationHeader(for url: URL) -> String?
func remove(for url: URL) async throws