123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870 |
- import Foundation
- public enum AFError: Error {
-
- public enum MultipartEncodingFailureReason {
-
- case bodyPartURLInvalid(url: URL)
-
- case bodyPartFilenameInvalid(in: URL)
-
- case bodyPartFileNotReachable(at: URL)
-
- case bodyPartFileNotReachableWithError(atURL: URL, error: Error)
-
- case bodyPartFileIsDirectory(at: URL)
-
- case bodyPartFileSizeNotAvailable(at: URL)
-
- case bodyPartFileSizeQueryFailedWithError(forURL: URL, error: Error)
-
- case bodyPartInputStreamCreationFailed(for: URL)
-
- case outputStreamCreationFailed(for: URL)
-
- case outputStreamFileAlreadyExists(at: URL)
-
- case outputStreamURLInvalid(url: URL)
-
- case outputStreamWriteFailed(error: Error)
-
- case inputStreamReadFailed(error: Error)
- }
-
-
- public struct UnexpectedInputStreamLength: Error {
-
- public var bytesExpected: UInt64
-
- public var bytesRead: UInt64
- }
-
- public enum ParameterEncodingFailureReason {
-
- case missingURL
-
- case jsonEncodingFailed(error: Error)
-
- case customEncodingFailed(error: Error)
- }
-
- public enum ParameterEncoderFailureReason {
-
- public enum RequiredComponent {
-
- case url
-
- case httpMethod(rawValue: String)
- }
-
- case missingRequiredComponent(RequiredComponent)
-
- case encoderFailed(error: Error)
- }
-
- public enum ResponseValidationFailureReason {
-
- case dataFileNil
-
- case dataFileReadFailed(at: URL)
-
-
- case missingContentType(acceptableContentTypes: [String])
-
- case unacceptableContentType(acceptableContentTypes: [String], responseContentType: String)
-
- case unacceptableStatusCode(code: Int)
-
- case customValidationFailed(error: Error)
- }
-
- public enum ResponseSerializationFailureReason {
-
- case inputDataNilOrZeroLength
-
- case inputFileNil
-
- case inputFileReadFailed(at: URL)
-
- case stringSerializationFailed(encoding: String.Encoding)
-
- case jsonSerializationFailed(error: Error)
-
- case decodingFailed(error: Error)
-
- case customSerializationFailed(error: Error)
-
- case invalidEmptyResponse(type: String)
- }
- #if !(os(Linux) || os(Windows))
-
- public enum ServerTrustFailureReason {
-
- public struct Output {
-
- public let host: String
-
- public let trust: SecTrust
-
- public let status: OSStatus
-
- public let result: SecTrustResultType
-
- init(_ host: String, _ trust: SecTrust, _ status: OSStatus, _ result: SecTrustResultType) {
- self.host = host
- self.trust = trust
- self.status = status
- self.result = result
- }
- }
-
- case noRequiredEvaluator(host: String)
-
- case noCertificatesFound
-
- case noPublicKeysFound
-
- case policyApplicationFailed(trust: SecTrust, policy: SecPolicy, status: OSStatus)
-
- case settingAnchorCertificatesFailed(status: OSStatus, certificates: [SecCertificate])
-
- case revocationPolicyCreationFailed
-
- case trustEvaluationFailed(error: Error?)
-
- case defaultEvaluationFailed(output: Output)
-
- case hostValidationFailed(output: Output)
-
- case revocationCheckFailed(output: Output, options: RevocationTrustEvaluator.Options)
-
- case certificatePinningFailed(host: String, trust: SecTrust, pinnedCertificates: [SecCertificate], serverCertificates: [SecCertificate])
-
- case publicKeyPinningFailed(host: String, trust: SecTrust, pinnedKeys: [SecKey], serverKeys: [SecKey])
-
- case customEvaluationFailed(error: Error)
- }
- #endif
-
- public enum URLRequestValidationFailureReason {
-
- case bodyDataInGETRequest(Data)
- }
-
- case createUploadableFailed(error: Error)
-
- case createURLRequestFailed(error: Error)
-
- case downloadedFileMoveFailed(error: Error, source: URL, destination: URL)
-
- case explicitlyCancelled
-
- case invalidURL(url: URLConvertible)
-
- case multipartEncodingFailed(reason: MultipartEncodingFailureReason)
-
- case parameterEncodingFailed(reason: ParameterEncodingFailureReason)
-
- case parameterEncoderFailed(reason: ParameterEncoderFailureReason)
-
- case requestAdaptationFailed(error: Error)
-
- case requestRetryFailed(retryError: Error, originalError: Error)
-
- case responseValidationFailed(reason: ResponseValidationFailureReason)
-
- case responseSerializationFailed(reason: ResponseSerializationFailureReason)
- #if !(os(Linux) || os(Windows))
-
- case serverTrustEvaluationFailed(reason: ServerTrustFailureReason)
- #endif
-
- case sessionDeinitialized
-
- case sessionInvalidated(error: Error?)
-
- case sessionTaskFailed(error: Error)
-
- case urlRequestValidationFailed(reason: URLRequestValidationFailureReason)
- }
- extension Error {
-
- public var asAFError: AFError? {
- self as? AFError
- }
-
- public func asAFError(orFailWith message: @autoclosure () -> String, file: StaticString = #file, line: UInt = #line) -> AFError {
- guard let afError = self as? AFError else {
- fatalError(message(), file: file, line: line)
- }
- return afError
- }
-
- func asAFError(or defaultAFError: @autoclosure () -> AFError) -> AFError {
- self as? AFError ?? defaultAFError()
- }
- }
- extension AFError {
-
- public var isSessionDeinitializedError: Bool {
- if case .sessionDeinitialized = self { return true }
- return false
- }
-
- public var isSessionInvalidatedError: Bool {
- if case .sessionInvalidated = self { return true }
- return false
- }
-
- public var isExplicitlyCancelledError: Bool {
- if case .explicitlyCancelled = self { return true }
- return false
- }
-
- public var isInvalidURLError: Bool {
- if case .invalidURL = self { return true }
- return false
- }
-
-
- public var isParameterEncodingError: Bool {
- if case .parameterEncodingFailed = self { return true }
- return false
- }
-
-
- public var isParameterEncoderError: Bool {
- if case .parameterEncoderFailed = self { return true }
- return false
- }
-
-
- public var isMultipartEncodingError: Bool {
- if case .multipartEncodingFailed = self { return true }
- return false
- }
-
-
- public var isRequestAdaptationError: Bool {
- if case .requestAdaptationFailed = self { return true }
- return false
- }
-
-
- public var isResponseValidationError: Bool {
- if case .responseValidationFailed = self { return true }
- return false
- }
-
-
- public var isResponseSerializationError: Bool {
- if case .responseSerializationFailed = self { return true }
- return false
- }
- #if !(os(Linux) || os(Windows))
-
-
- public var isServerTrustEvaluationError: Bool {
- if case .serverTrustEvaluationFailed = self { return true }
- return false
- }
- #endif
-
-
- public var isRequestRetryError: Bool {
- if case .requestRetryFailed = self { return true }
- return false
- }
-
-
- public var isCreateUploadableError: Bool {
- if case .createUploadableFailed = self { return true }
- return false
- }
-
-
- public var isCreateURLRequestError: Bool {
- if case .createURLRequestFailed = self { return true }
- return false
- }
-
-
- public var isDownloadedFileMoveError: Bool {
- if case .downloadedFileMoveFailed = self { return true }
- return false
- }
-
-
- public var isSessionTaskError: Bool {
- if case .sessionTaskFailed = self { return true }
- return false
- }
- }
- extension AFError {
-
- public var urlConvertible: URLConvertible? {
- guard case let .invalidURL(url) = self else { return nil }
- return url
- }
-
- public var url: URL? {
- guard case let .multipartEncodingFailed(reason) = self else { return nil }
- return reason.url
- }
-
-
-
- public var underlyingError: Error? {
- switch self {
- case let .multipartEncodingFailed(reason):
- return reason.underlyingError
- case let .parameterEncodingFailed(reason):
- return reason.underlyingError
- case let .parameterEncoderFailed(reason):
- return reason.underlyingError
- case let .requestAdaptationFailed(error):
- return error
- case let .requestRetryFailed(retryError, _):
- return retryError
- case let .responseValidationFailed(reason):
- return reason.underlyingError
- case let .responseSerializationFailed(reason):
- return reason.underlyingError
- #if !(os(Linux) || os(Windows))
- case let .serverTrustEvaluationFailed(reason):
- return reason.underlyingError
- #endif
- case let .sessionInvalidated(error):
- return error
- case let .createUploadableFailed(error):
- return error
- case let .createURLRequestFailed(error):
- return error
- case let .downloadedFileMoveFailed(error, _, _):
- return error
- case let .sessionTaskFailed(error):
- return error
- case .explicitlyCancelled,
- .invalidURL,
- .sessionDeinitialized,
- .urlRequestValidationFailed:
- return nil
- }
- }
-
- public var acceptableContentTypes: [String]? {
- guard case let .responseValidationFailed(reason) = self else { return nil }
- return reason.acceptableContentTypes
- }
-
- public var responseContentType: String? {
- guard case let .responseValidationFailed(reason) = self else { return nil }
- return reason.responseContentType
- }
-
- public var responseCode: Int? {
- guard case let .responseValidationFailed(reason) = self else { return nil }
- return reason.responseCode
- }
-
- public var failedStringEncoding: String.Encoding? {
- guard case let .responseSerializationFailed(reason) = self else { return nil }
- return reason.failedStringEncoding
- }
-
- public var sourceURL: URL? {
- guard case let .downloadedFileMoveFailed(_, source, _) = self else { return nil }
- return source
- }
-
- public var destinationURL: URL? {
- guard case let .downloadedFileMoveFailed(_, _, destination) = self else { return nil }
- return destination
- }
- #if !(os(Linux) || os(Windows))
-
- public var downloadResumeData: Data? {
- (underlyingError as? URLError)?.userInfo[NSURLSessionDownloadTaskResumeData] as? Data
- }
- #endif
- }
- extension AFError.ParameterEncodingFailureReason {
- var underlyingError: Error? {
- switch self {
- case let .jsonEncodingFailed(error),
- let .customEncodingFailed(error):
- return error
- case .missingURL:
- return nil
- }
- }
- }
- extension AFError.ParameterEncoderFailureReason {
- var underlyingError: Error? {
- switch self {
- case let .encoderFailed(error):
- return error
- case .missingRequiredComponent:
- return nil
- }
- }
- }
- extension AFError.MultipartEncodingFailureReason {
- var url: URL? {
- switch self {
- case let .bodyPartURLInvalid(url),
- let .bodyPartFilenameInvalid(url),
- let .bodyPartFileNotReachable(url),
- let .bodyPartFileIsDirectory(url),
- let .bodyPartFileSizeNotAvailable(url),
- let .bodyPartInputStreamCreationFailed(url),
- let .outputStreamCreationFailed(url),
- let .outputStreamFileAlreadyExists(url),
- let .outputStreamURLInvalid(url),
- let .bodyPartFileNotReachableWithError(url, _),
- let .bodyPartFileSizeQueryFailedWithError(url, _):
- return url
- case .outputStreamWriteFailed,
- .inputStreamReadFailed:
- return nil
- }
- }
- var underlyingError: Error? {
- switch self {
- case let .bodyPartFileNotReachableWithError(_, error),
- let .bodyPartFileSizeQueryFailedWithError(_, error),
- let .outputStreamWriteFailed(error),
- let .inputStreamReadFailed(error):
- return error
- case .bodyPartURLInvalid,
- .bodyPartFilenameInvalid,
- .bodyPartFileNotReachable,
- .bodyPartFileIsDirectory,
- .bodyPartFileSizeNotAvailable,
- .bodyPartInputStreamCreationFailed,
- .outputStreamCreationFailed,
- .outputStreamFileAlreadyExists,
- .outputStreamURLInvalid:
- return nil
- }
- }
- }
- extension AFError.ResponseValidationFailureReason {
- var acceptableContentTypes: [String]? {
- switch self {
- case let .missingContentType(types),
- let .unacceptableContentType(types, _):
- return types
- case .dataFileNil,
- .dataFileReadFailed,
- .unacceptableStatusCode,
- .customValidationFailed:
- return nil
- }
- }
- var responseContentType: String? {
- switch self {
- case let .unacceptableContentType(_, responseType):
- return responseType
- case .dataFileNil,
- .dataFileReadFailed,
- .missingContentType,
- .unacceptableStatusCode,
- .customValidationFailed:
- return nil
- }
- }
- var responseCode: Int? {
- switch self {
- case let .unacceptableStatusCode(code):
- return code
- case .dataFileNil,
- .dataFileReadFailed,
- .missingContentType,
- .unacceptableContentType,
- .customValidationFailed:
- return nil
- }
- }
- var underlyingError: Error? {
- switch self {
- case let .customValidationFailed(error):
- return error
- case .dataFileNil,
- .dataFileReadFailed,
- .missingContentType,
- .unacceptableContentType,
- .unacceptableStatusCode:
- return nil
- }
- }
- }
- extension AFError.ResponseSerializationFailureReason {
- var failedStringEncoding: String.Encoding? {
- switch self {
- case let .stringSerializationFailed(encoding):
- return encoding
- case .inputDataNilOrZeroLength,
- .inputFileNil,
- .inputFileReadFailed(_),
- .jsonSerializationFailed(_),
- .decodingFailed(_),
- .customSerializationFailed(_),
- .invalidEmptyResponse:
- return nil
- }
- }
- var underlyingError: Error? {
- switch self {
- case let .jsonSerializationFailed(error),
- let .decodingFailed(error),
- let .customSerializationFailed(error):
- return error
- case .inputDataNilOrZeroLength,
- .inputFileNil,
- .inputFileReadFailed,
- .stringSerializationFailed,
- .invalidEmptyResponse:
- return nil
- }
- }
- }
- #if !(os(Linux) || os(Windows))
- extension AFError.ServerTrustFailureReason {
- var output: AFError.ServerTrustFailureReason.Output? {
- switch self {
- case let .defaultEvaluationFailed(output),
- let .hostValidationFailed(output),
- let .revocationCheckFailed(output, _):
- return output
- case .noRequiredEvaluator,
- .noCertificatesFound,
- .noPublicKeysFound,
- .policyApplicationFailed,
- .settingAnchorCertificatesFailed,
- .revocationPolicyCreationFailed,
- .trustEvaluationFailed,
- .certificatePinningFailed,
- .publicKeyPinningFailed,
- .customEvaluationFailed:
- return nil
- }
- }
- var underlyingError: Error? {
- switch self {
- case let .customEvaluationFailed(error):
- return error
- case let .trustEvaluationFailed(error):
- return error
- case .noRequiredEvaluator,
- .noCertificatesFound,
- .noPublicKeysFound,
- .policyApplicationFailed,
- .settingAnchorCertificatesFailed,
- .revocationPolicyCreationFailed,
- .defaultEvaluationFailed,
- .hostValidationFailed,
- .revocationCheckFailed,
- .certificatePinningFailed,
- .publicKeyPinningFailed:
- return nil
- }
- }
- }
- #endif
- extension AFError: LocalizedError {
- public var errorDescription: String? {
- switch self {
- case .explicitlyCancelled:
- return "Request explicitly cancelled."
- case let .invalidURL(url):
- return "URL is not valid: \(url)"
- case let .parameterEncodingFailed(reason):
- return reason.localizedDescription
- case let .parameterEncoderFailed(reason):
- return reason.localizedDescription
- case let .multipartEncodingFailed(reason):
- return reason.localizedDescription
- case let .requestAdaptationFailed(error):
- return "Request adaption failed with error: \(error.localizedDescription)"
- case let .responseValidationFailed(reason):
- return reason.localizedDescription
- case let .responseSerializationFailed(reason):
- return reason.localizedDescription
- case let .requestRetryFailed(retryError, originalError):
- return """
- Request retry failed with retry error: \(retryError.localizedDescription), \
- original error: \(originalError.localizedDescription)
- """
- case .sessionDeinitialized:
- return """
- Session was invalidated without error, so it was likely deinitialized unexpectedly. \
- Be sure to retain a reference to your Session for the duration of your requests.
- """
- case let .sessionInvalidated(error):
- return "Session was invalidated with error: \(error?.localizedDescription ?? "No description.")"
- #if !(os(Linux) || os(Windows))
- case let .serverTrustEvaluationFailed(reason):
- return "Server trust evaluation failed due to reason: \(reason.localizedDescription)"
- #endif
- case let .urlRequestValidationFailed(reason):
- return "URLRequest validation failed due to reason: \(reason.localizedDescription)"
- case let .createUploadableFailed(error):
- return "Uploadable creation failed with error: \(error.localizedDescription)"
- case let .createURLRequestFailed(error):
- return "URLRequest creation failed with error: \(error.localizedDescription)"
- case let .downloadedFileMoveFailed(error, source, destination):
- return "Moving downloaded file from: \(source) to: \(destination) failed with error: \(error.localizedDescription)"
- case let .sessionTaskFailed(error):
- return "URLSessionTask failed with error: \(error.localizedDescription)"
- }
- }
- }
- extension AFError.ParameterEncodingFailureReason {
- var localizedDescription: String {
- switch self {
- case .missingURL:
- return "URL request to encode was missing a URL"
- case let .jsonEncodingFailed(error):
- return "JSON could not be encoded because of error:\n\(error.localizedDescription)"
- case let .customEncodingFailed(error):
- return "Custom parameter encoder failed with error: \(error.localizedDescription)"
- }
- }
- }
- extension AFError.ParameterEncoderFailureReason {
- var localizedDescription: String {
- switch self {
- case let .missingRequiredComponent(component):
- return "Encoding failed due to a missing request component: \(component)"
- case let .encoderFailed(error):
- return "The underlying encoder failed with the error: \(error)"
- }
- }
- }
- extension AFError.MultipartEncodingFailureReason {
- var localizedDescription: String {
- switch self {
- case let .bodyPartURLInvalid(url):
- return "The URL provided is not a file URL: \(url)"
- case let .bodyPartFilenameInvalid(url):
- return "The URL provided does not have a valid filename: \(url)"
- case let .bodyPartFileNotReachable(url):
- return "The URL provided is not reachable: \(url)"
- case let .bodyPartFileNotReachableWithError(url, error):
- return """
- The system returned an error while checking the provided URL for reachability.
- URL: \(url)
- Error: \(error)
- """
- case let .bodyPartFileIsDirectory(url):
- return "The URL provided is a directory: \(url)"
- case let .bodyPartFileSizeNotAvailable(url):
- return "Could not fetch the file size from the provided URL: \(url)"
- case let .bodyPartFileSizeQueryFailedWithError(url, error):
- return """
- The system returned an error while attempting to fetch the file size from the provided URL.
- URL: \(url)
- Error: \(error)
- """
- case let .bodyPartInputStreamCreationFailed(url):
- return "Failed to create an InputStream for the provided URL: \(url)"
- case let .outputStreamCreationFailed(url):
- return "Failed to create an OutputStream for URL: \(url)"
- case let .outputStreamFileAlreadyExists(url):
- return "A file already exists at the provided URL: \(url)"
- case let .outputStreamURLInvalid(url):
- return "The provided OutputStream URL is invalid: \(url)"
- case let .outputStreamWriteFailed(error):
- return "OutputStream write failed with error: \(error)"
- case let .inputStreamReadFailed(error):
- return "InputStream read failed with error: \(error)"
- }
- }
- }
- extension AFError.ResponseSerializationFailureReason {
- var localizedDescription: String {
- switch self {
- case .inputDataNilOrZeroLength:
- return "Response could not be serialized, input data was nil or zero length."
- case .inputFileNil:
- return "Response could not be serialized, input file was nil."
- case let .inputFileReadFailed(url):
- return "Response could not be serialized, input file could not be read: \(url)."
- case let .stringSerializationFailed(encoding):
- return "String could not be serialized with encoding: \(encoding)."
- case let .jsonSerializationFailed(error):
- return "JSON could not be serialized because of error:\n\(error.localizedDescription)"
- case let .invalidEmptyResponse(type):
- return """
- Empty response could not be serialized to type: \(type). \
- Use Empty as the expected type for such responses.
- """
- case let .decodingFailed(error):
- return "Response could not be decoded because of error:\n\(error.localizedDescription)"
- case let .customSerializationFailed(error):
- return "Custom response serializer failed with error:\n\(error.localizedDescription)"
- }
- }
- }
- extension AFError.ResponseValidationFailureReason {
- var localizedDescription: String {
- switch self {
- case .dataFileNil:
- return "Response could not be validated, data file was nil."
- case let .dataFileReadFailed(url):
- return "Response could not be validated, data file could not be read: \(url)."
- case let .missingContentType(types):
- return """
- Response Content-Type was missing and acceptable content types \
- (\(types.joined(separator: ","))) do not match "*/*".
- """
- case let .unacceptableContentType(acceptableTypes, responseType):
- return """
- Response Content-Type "\(responseType)" does not match any acceptable types: \
- \(acceptableTypes.joined(separator: ",")).
- """
- case let .unacceptableStatusCode(code):
- return "Response status code was unacceptable: \(code)."
- case let .customValidationFailed(error):
- return "Custom response validation failed with error: \(error.localizedDescription)"
- }
- }
- }
- #if !(os(Linux) || os(Windows))
- extension AFError.ServerTrustFailureReason {
- var localizedDescription: String {
- switch self {
- case let .noRequiredEvaluator(host):
- return "A ServerTrustEvaluating value is required for host \(host) but none was found."
- case .noCertificatesFound:
- return "No certificates were found or provided for evaluation."
- case .noPublicKeysFound:
- return "No public keys were found or provided for evaluation."
- case .policyApplicationFailed:
- return "Attempting to set a SecPolicy failed."
- case .settingAnchorCertificatesFailed:
- return "Attempting to set the provided certificates as anchor certificates failed."
- case .revocationPolicyCreationFailed:
- return "Attempting to create a revocation policy failed."
- case let .trustEvaluationFailed(error):
- return "SecTrust evaluation failed with error: \(error?.localizedDescription ?? "None")"
- case let .defaultEvaluationFailed(output):
- return "Default evaluation failed for host \(output.host)."
- case let .hostValidationFailed(output):
- return "Host validation failed for host \(output.host)."
- case let .revocationCheckFailed(output, _):
- return "Revocation check failed for host \(output.host)."
- case let .certificatePinningFailed(host, _, _, _):
- return "Certificate pinning failed for host \(host)."
- case let .publicKeyPinningFailed(host, _, _, _):
- return "Public key pinning failed for host \(host)."
- case let .customEvaluationFailed(error):
- return "Custom trust evaluation failed with error: \(error.localizedDescription)"
- }
- }
- }
- #endif
- extension AFError.URLRequestValidationFailureReason {
- var localizedDescription: String {
- switch self {
- case let .bodyDataInGETRequest(data):
- return """
- Invalid URLRequest: Requests with GET method cannot have body data:
- \(String(decoding: data, as: UTF8.self))
- """
- }
- }
- }
|