Swiftpack.co - frozendevil/GeminiProtocol as Swift Package

Swiftpack.co is a collection of thousands of indexed Swift packages. Search packages.
See all packages published by frozendevil.
frozendevil/GeminiProtocol 0.1.0
URLSession support for the Gemini Protocol
⭐️ 3
🕓 25 weeks ago
iOS macOS watchOS tvOS
.package(url: "https://github.com/frozendevil/GeminiProtocol.git", from: "0.1.0")

GeminiProtocol

Network.Framework and URLSession support for the Gemini Protocol

Usage

URLSession

Calling URLProtocol.registerClass(GeminiProtocol.self) will cause your normal URLSession code to "Just Work" with gemini:// URLs. The URLResponse you receive will be a GeminiURLResponse with statusCode and meta properties.

Code

  • GeminiProtocol.swift contains the implementation of the URLSession support.
  • GeminiNetwork.swift is a Network.framework implementation of a Gemini client.

GitHub

link
Stars: 3
Last commit: 1 week ago
jonrohan Something's broken? Yell at me @ptrpavlik. Praise and feedback (and money) is also welcome.

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