https://github.com/edonv/swift-http-field-types
Convenience types for special content types of header fields.
https://github.com/edonv/swift-http-field-types
cookies headers http range rest-api swift swift-http-types
Last synced: 3 months ago
JSON representation
Convenience types for special content types of header fields.
- Host: GitHub
- URL: https://github.com/edonv/swift-http-field-types
- Owner: edonv
- License: mit
- Created: 2024-07-23T21:16:16.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-09-14T21:53:40.000Z (over 1 year ago)
- Last Synced: 2024-11-25T07:46:31.093Z (over 1 year ago)
- Topics: cookies, headers, http, range, rest-api, swift, swift-http-types
- Language: Swift
- Homepage: https://swiftpackageindex.com/edonv/swift-http-field-types/documentation/httpranges
- Size: 61.5 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Swift HTTP Field Types
[](https://swiftpackageindex.com/edonv/swift-http-field-types)
[](https://swiftpackageindex.com/edonv/swift-http-field-types)
Formerly `swift-http-ranges`, `swift-http-field-types` now covers all kinds of special value types found in HTTP header fields. It builds on Apple's [`swift-http-types`](https://github.com/apple/swift-http-types).
## Supported Headers
- Ranges
- [Range](https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Range)
- [Content-Range](https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Content-Range)
- Cookies
- [Cookie](https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Cookie)
- [Set-Cookie](https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Set-Cookie)
- Dates
- [Date](https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Date) (Note that this field type isn't fully finished yet, only the value type of the header is complete.)