文件名称:JSONRPCKit:一种完全由Swift编写的类型安全的JSON-RPC 2.0库
文件大小:41KB
文件格式:ZIP
更新时间:2024-03-16 16:22:19
Swift
JSONRPCKit JSONRPCKit是纯粹使用Swift编写的类型安全的库。 // Generating request JSON let batchFactory = BatchFactory ( version : " 2.0 " , idGenerator : NumberIdGenerator ()) let request = Subtract ( minuend : 42 , subtrahend : 23 ) let batch = batchFactory. create (request) batch. requestObject // ["jsonrpc": "2.0", "method": "subtract", "params": [42, 23], "id": 1] // Parsing response JSON let responseObject:
【文件预览】:
JSONRPCKit-master
----.gitignore(668B)
----Package.swift(589B)
----README.md(5KB)
----JSONRPCKit.podspec(2KB)
----.gitmodules(242B)
----Example()
--------Example()
--------Example.xcodeproj()
----Cartfile.resolved(68B)
----Sources()
--------JSONRPCKit()
----Cartfile.private(33B)
----.swift-version(4B)
----JSONRPCKit.xcworkspace()
--------contents.xcworkspacedata(667B)
--------xcshareddata()
----Cartfile(37B)
----LICENSE.md(1KB)
----Package.resolved(323B)
----Tests()
--------JSONRPCKitTests()
--------LinuxMain.swift(145B)
----.travis.yml(1KB)
----Carthage()
--------Checkouts()
----JSONRPCKit.xcodeproj()
--------project.xcworkspace()
--------project.pbxproj(22KB)
--------xcshareddata()