Swiftpack.co - CreateAPI/HTTPHeaders as Swift Package

Swiftpack.co is a collection of thousands of indexed Swift packages. Search packages.
See all packages published by CreateAPI.
CreateAPI/HTTPHeaders 0.1.1
Parsing Simple HTTP Headers
⭐️ 12
🕓 1 week ago
iOS macOS watchOS tvOS
.package(url: "https://github.com/CreateAPI/HTTPHeaders.git", from: "0.1.1")

HTTP Headers

Parsing simple HTTP headers using pre-defined header descriptions.

Examples:

let response = HTTPURLRseponse(..., headers: [
    "X-RateLimit-Reset": "2015-01-01T00:00:00Z"
])

let header = HTTPHeader<Date>(field: "X-RateLimit-Reset")
let date = try header.parse(from: response)
// let date = try header.parseIfPresent(from: response)

GitHub

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

Release Notes

0.1.1
1 week ago

What's Changed

Full Changelog: https://github.com/CreateAPI/HTTPHeaders/compare/0.1.0...0.1.1

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