An open API service indexing awesome lists of open source software.

https://github.com/createapi/httpheaders

Parsing Simple HTTP Headers
https://github.com/createapi/httpheaders

Last synced: 6 months ago
JSON representation

Parsing Simple HTTP Headers

Awesome Lists containing this project

README

          

# HTTP Headers

Parsing simple HTTP headers using pre-defined header descriptions.

Examples:

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

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