swift-resource

master

mime definitions, cache-control, and http semantics for server applications
kelvin13/swift-resource

resource
0.3.2

ci status ci status ci status

swift package index versions swift package index platforms

This package contains miscellaneous definitions useful for server applications. For the most part, the modules in this package refrain from vending complex implementations, as they only vend types intended to serve as a common medium-of-exchange between different downstream components.

Downstream consumers of this package are expected to provide additional functionality as extensions on the types in this package, as needed.

  • MIME

    Vends a single type MIME, which contains content-type definitions.

  • Resources

    Vends a single type Resource, which wraps a MIME type, a backing storage payload (String or [UInt8]), and an optional SHA-256 hash. The Resources module also provides convenience APIs for serializing and parsing a SHA-256 hash to and from an HTTP ETag string.

    Please note that the module is named Resources, but the type is named Resource.

  • WebSemantics

    Contains type definitions useful for applications that implement an HTTP or HTTP-like API, without needing to know the details of HTTP specifically.

Description

  • Swift Tools 5.3.0
View More Packages from this Author

Dependencies

Last updated: Tue Jul 26 2022 10:44:30 GMT-0500 (GMT-05:00)