origin_path!() { /* proc-macro */ }Expand description
Creates a validated OriginPath wrapper for CloudFront origin path prefixes at compile time.
This macro ensures that the path string follows CloudFront’s requirements for origin paths, which are appended to requests forwarded to the origin.
§Validation Rules
- Must start with a forward slash (/)
- Must NOT end with a forward slash (/)
- Example: “/production” is valid, but “/production/” and “production” are not