A URI decorator in OpenRasta is a class that lets you manipulate URIs before a request is processed. They are used for implementing various features, such as content negotiation via file extensions, localized URIs, and whatever else you may think of (implement IUriDecorator to make your own).
Register a UriDecorator with OpenRasta using the ResourceSpace.Uses construct.
Supplied UriDecorators in OpenRasta
These UriDecorators are found in the OpenRasta.Web.UriDecorators namespace.
| UriDecorator? class name | Purpose |
| ContentTypeExtensionUriDecorator | Allows content negotiation based on file extension rather than the usual HTTP Accept header |
| CultureParenthesisUriDecorator | Not yet implemented |
| HttpMethodOverrideUriDecorator | Allows you to intercept an incoming HTTP request and change its verb (from POST to PUT, for example), based on the X-HttpMethod-Override http header. Used for clients not able to call other verbs themselves. |
| PathSegmentAsParameterUriDecorator | Allows semicolon path segments to be parsed and used as a parameter for codecs to use |
