trait DynamicScope extends RequestResponseScope
The Scalatra DSL requires a dynamically scoped request and response. This trick is explained in greater detail in Gabriele Renzi's blog post about Step, out of which Scalatra grew:
http://www.riffraff.info/2009/4/11/step-a-scala-web-picoframework
- Alphabetic
 - By Inheritance
 
- DynamicScope
 - RequestResponseScope
 - AnyRef
 - Any
 
- Hide All
 - Show All
 
- Public
 - All
 
Value Members
- 
      
      
      
        
      
    
      
        final 
        def
      
      
        !=(arg0: Any): Boolean
      
      
      
- Definition Classes
 - AnyRef → Any
 
 - 
      
      
      
        
      
    
      
        final 
        def
      
      
        ##(): Int
      
      
      
- Definition Classes
 - AnyRef → Any
 
 - 
      
      
      
        
      
    
      
        final 
        def
      
      
        ==(arg0: Any): Boolean
      
      
      
- Definition Classes
 - AnyRef → Any
 
 - 
      
      
      
        
      
    
      
        final 
        def
      
      
        asInstanceOf[T0]: T0
      
      
      
- Definition Classes
 - Any
 
 - 
      
      
      
        
      
    
      
        
        def
      
      
        clone(): AnyRef
      
      
      
- Attributes
 - protected[java.lang]
 - Definition Classes
 - AnyRef
 - Annotations
 - @throws( ... )
 
 - 
      
      
      
        
      
    
      
        final 
        def
      
      
        eq(arg0: AnyRef): Boolean
      
      
      
- Definition Classes
 - AnyRef
 
 - 
      
      
      
        
      
    
      
        
        def
      
      
        equals(arg0: Any): Boolean
      
      
      
- Definition Classes
 - AnyRef → Any
 
 - 
      
      
      
        
      
    
      
        
        def
      
      
        finalize(): Unit
      
      
      
- Attributes
 - protected[java.lang]
 - Definition Classes
 - AnyRef
 - Annotations
 - @throws( classOf[java.lang.Throwable] )
 
 - 
      
      
      
        
      
    
      
        final 
        def
      
      
        getClass(): Class[_]
      
      
      
- Definition Classes
 - AnyRef → Any
 
 - 
      
      
      
        
      
    
      
        
        def
      
      
        hashCode(): Int
      
      
      
- Definition Classes
 - AnyRef → Any
 
 - 
      
      
      
        
      
    
      
        final 
        def
      
      
        isInstanceOf[T0]: Boolean
      
      
      
- Definition Classes
 - Any
 
 - 
      
      
      
        
      
    
      
        final 
        def
      
      
        ne(arg0: AnyRef): Boolean
      
      
      
- Definition Classes
 - AnyRef
 
 - 
      
      
      
        
      
    
      
        final 
        def
      
      
        notify(): Unit
      
      
      
- Definition Classes
 - AnyRef
 
 - 
      
      
      
        
      
    
      
        final 
        def
      
      
        notifyAll(): Unit
      
      
      
- Definition Classes
 - AnyRef
 
 - 
      
      
      
        
      
    
      
        implicit 
        def
      
      
        request: HttpServletRequest
      
      
      
The currently scoped request.
The currently scoped request. Valid only inside the
handlemethod.- Definition Classes
 - DynamicScope → RequestResponseScope
 
 - 
      
      
      
        
      
    
      
        implicit 
        def
      
      
        response: HttpServletResponse
      
      
      
The currently scoped response.
The currently scoped response. Valid only inside the
handlemethod.- Definition Classes
 - DynamicScope → RequestResponseScope
 
 - 
      
      
      
        
      
    
      
        final 
        def
      
      
        synchronized[T0](arg0: ⇒ T0): T0
      
      
      
- Definition Classes
 - AnyRef
 
 - 
      
      
      
        
      
    
      
        
        def
      
      
        toString(): String
      
      
      
- Definition Classes
 - AnyRef → Any
 
 - 
      
      
      
        
      
    
      
        final 
        def
      
      
        wait(): Unit
      
      
      
- Definition Classes
 - AnyRef
 - Annotations
 - @throws( ... )
 
 - 
      
      
      
        
      
    
      
        final 
        def
      
      
        wait(arg0: Long, arg1: Int): Unit
      
      
      
- Definition Classes
 - AnyRef
 - Annotations
 - @throws( ... )
 
 - 
      
      
      
        
      
    
      
        final 
        def
      
      
        wait(arg0: Long): Unit
      
      
      
- Definition Classes
 - AnyRef
 - Annotations
 - @throws( ... )
 
 - 
      
      
      
        
      
    
      
        
        def
      
      
        withRequest[A](request: HttpServletRequest)(f: ⇒ A): A
      
      
      
Executes the block with the given request bound to the
requestmethod.Executes the block with the given request bound to the
requestmethod.- Attributes
 - protected
 - Definition Classes
 - DynamicScope → RequestResponseScope
 
 - 
      
      
      
        
      
    
      
        
        def
      
      
        withRequestResponse[A](request: HttpServletRequest, response: HttpServletResponse)(f: ⇒ A): A
      
      
      
- Attributes
 - protected[org.scalatra]
 - Definition Classes
 - DynamicScope → RequestResponseScope
 
 - 
      
      
      
        
      
    
      
        
        def
      
      
        withResponse[A](response: HttpServletResponse)(f: ⇒ A): A
      
      
      
Executes the block with the given response bound to the
responsemethod.Executes the block with the given response bound to the
responsemethod.- Attributes
 - protected
 - Definition Classes
 - DynamicScope → RequestResponseScope
 
 
Deprecated Value Members
- 
      
      
      
        
      
    
      
        
        def
      
      
        _request: DynamicVariable[HttpServletRequest]
      
      
      
- Attributes
 - protected
 - Annotations
 - @deprecated
 - Deprecated
 (Since version 2.1.0) Do not invoke directly. Use
withRequestto change the binding, or request to get the value
 - 
      
      
      
        
      
    
      
        
        def
      
      
        _response: DynamicVariable[HttpServletResponse]
      
      
      
- Attributes
 - protected
 - Annotations
 - @deprecated
 - Deprecated
 (Since version 2.1.0) Do not invoke directly. Use
withResponseto change the binding, orresponseto get the value