Swiftpack.co - Macro-swift/MacroXmlRpc as Swift Package

Swiftpack.co is a collection of thousands of indexed Swift packages. Search packages.
Macro-swift/MacroXmlRpc
XML-RPC support for MacroExpress (Swift XML-RPC servers)
.package(url: "https://github.com/Macro-swift/MacroXmlRpc.git", from: "0.5.4")

Macro XML-RPC

XML-RPC support for MacroExpress.

This is covered in the Writing an Swift XML-RPC Server blog entry.

What does it look like?

#!/usr/bin/swift sh
import MacroExpress // @Macro-swift
import MacroXmlRpc  // @Macro-swift

let app = express()

app.route("/RPC2")
   .use(bodyParser.xmlRpcCall())
   .rpc("ping") { _ in "pong" }
   .rpc("add")  { ( a: Int, b: Int ) in a + b }
   .use(xmlrpc.introspection())

app.listen(1337)

Environment Variables

  • macro.core.numthreads
  • macro.core.iothreads
  • macro.core.retain.debug
  • macro.concat.maxsize
  • macro.streams.debug.rc
  • macro.router.debug
  • macro.router.matcher.debug
  • macro.router.walker.debug

Links

Who

Macro XML-RPC is brought to you by the Always Right Institute and ZeeZide. We like feedback, GitHub stars, cool contract work, presumably any form of praise you can think of.

There is a #microexpress channel on the Noze.io Slack. Feel free to join!

GitHub

link
Stars: 0
Last commit: 2 weeks ago

Ad: Job Offers

iOS Software Engineer @ Perry Street Software
Perry Street Software is Jack’d and SCRUFF. We are two of the world’s largest gay, bi, trans and queer social dating apps on iOS and Android. Our brands reach more than 20 million members worldwide so members can connect, meet and express themselves on a platform that prioritizes privacy and security. We invest heavily into SwiftUI and using Swift Packages to modularize the codebase.

Submit a free job ad (while I'm testing this). The analytics numbers for this website are here.

Release Notes

Asynchronously Not
2 weeks ago

Enforce use of Swift 5.5 enabled Macro. Changed Package.swift to 5.2 syntax (on a quest to be as WET as possible).

Removed support for Swift 5.0 and 5.1, because Apple:

We didn’t do it because it was required, instead that it felt appropriate

Swiftpack is being maintained by Petr Pavlik | @ptrpavlik | @swiftpackco | API | Analytics