Request / Response
Loom includes a LoomServletRequest and LoomServletResponse classes that add some features to the standard HttpServletRequest and HttpServletResponse objects:
- Unified interface for parameters and uploaded files.
- Stores Loom objects associated to the current request, such as the current MessagesRepository and ParsedAction instances.
- Add browser detection (but keep in mind that server-side browser sniffing is not always reliable).
- Detect Ajax requests: XHR requests realized with Prototype, Ext, jQuery or any other framework that sets the X-Requested-With HTTP header will return true when invoking request.isAjax()