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.
- 
MIMEVends a single type MIME, which containscontent-typedefinitions.
- 
WebResponseVends a single type WebResponse, which models an abstract HTTP response, and wraps a content payload (Stringor[UInt8]), its canonical location(s), and an optional SHA-256 hash. TheWebResponsemodule also provides convenience APIs for serializing and parsing a SHA-256 hash to and from an HTTP ETag string.
- 
WebSemanticsVends the WebServiceprotocol, which is useful for applications that implement an HTTP or HTTP-like API, without needing to know the details of HTTP specifically. Requires Swift >= 5.5.