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
⭐️ 4
🕓 2 years 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: 4
Last commit: 1 year ago
Advertisement: IndiePitcher.com - Cold Email Software for Startups

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