The Freya.Types.Http library implements types which represent the semantics of the following standards:
- RFC 7230 – Message Syntax and Routing
- RFC 7231 – Semantics and Content
- RFC 7232 – Conditional Requests
- RFC 7233 – Range Requests
- RFC 7234 – Caching
- RFC 7235 – Authentication
This set of RFCs covers basic types present in HTTP requests and responses, principally the data found in the headers of HTTP messages. Strongly typed representations and parsers are given.
Full documentation for the individual type designs within Freya.Types.Http is not currently available, but will be added at a later stage. Inspecting the values returned however should be straightforward and logical, and all typed representations map very closely to the logical design/grammar defined within the appropriate RFC or Recommendation.
To use the types:
// Working with the types open Freya.Types.Http