文件名称:APIKit:类型安全的网络抽象层,将请求类型与响应类型相关联
文件大小:81KB
文件格式:ZIP
更新时间:2024-05-02 23:43:54
Swift
API套件 APIKit是类型安全的网络抽象层,它将请求类型与响应类型相关联。 // SearchRepositoriesRequest conforms to Request protocol. let request = SearchRepositoriesRequest ( query : " swift " ) // Session receives an instance of a type that conforms to Request. Session. send (request) { result in switch result { case . success ( let response) : // Type of `response` is `[Repository]`, // which is inferre
【文件预览】:
APIKit-master
----Configurations()
--------APIKit.xcconfig(1KB)
--------Debug.xcconfig(326B)
--------Tests.xcconfig(580B)
--------Base.xcconfig(1019B)
--------Release.xcconfig(202B)
----APIKit.podspec(2KB)
----.swift-version(4B)
----Demo.playground()
--------Contents.swift(2KB)
--------contents.xcplayground(192B)
----.github()
--------workflows()
----APIKit.xcodeproj()
--------project.xcworkspace()
--------project.pbxproj(38KB)
--------xcshareddata()
----Sources()
--------APIKit()
----Package.swift(592B)
----codecov.yml(166B)
----LICENSE.md(1KB)
----.gitignore(1KB)
----Documentation()
--------GettingStarted.md(5KB)
--------CustomizingNetworkingBackend.md(2KB)
--------APIKit2MigrationGuide.md(5KB)
--------APIKit3MigrationGuide.md(3KB)
--------DefiningRequestProtocolForWebService.md(5KB)
--------ConvenienceParametersAndActualParameters.md(4KB)
----Tests()
--------APIKitTests()
----APIKit.xcworkspace()
--------contents.xcworkspacedata(156B)
--------xcshareddata()
----README.md(3KB)