Swiftpack.co - kean/HTTPHeaders as Swift Package

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

HTTP Headers

Parsing simple HTTP headers using pre-defined header descriptions.


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)


Stars: 11
Last commit: 2 weeks ago
jonrohan Something's broken? Yell at me @ptrpavlik. Praise and feedback (and money) is also welcome.

Release Notes

HTTPHeaders 0.1
2 weeks ago
  • Initial release

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