- Source:
 
Methods
(static) serve(tree, options) → {Promise.<object>}
- Source:
 
    Start a server for the given project (sub-)tree.
    Parameters:
| Name | Type | Description | ||||||||||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
tree | 
            
            object | A (sub-)tree | ||||||||||||||||||||||||||||||||||||||||||||||||||
options | 
            
            object | Options
                Properties
  | 
        
Returns:
    Promise resolving once the server is listening.
							It resolves with an object containing the 
port,
							h2-flag and a close function,
							which can be used to stop the server.
- Type
 - Promise.<object>
 
Type Definitions
SAPTargetCSPOptions
- Source:
 
Properties:
| Name | Type | Attributes | Default | Description | 
|---|---|---|---|---|
defaultPolicy | 
            
            string | 
                
                    <optional> | 
            
            
                
                
                    "sap-target-level-1"
                
                 | 
            
            |
defaultPolicyIsReportOnly | 
            
            string | 
                
                    <optional> | 
            
            
                
                
                    true
                
                 | 
            
            |
defaultPolicy2 | 
            
            string | 
                
                    <optional> | 
            
            
                
                
                    "sap-target-level-2"
                
                 | 
            
            |
defaultPolicy2IsReportOnly | 
            
            string | 
                
                    <optional> | 
            
            
                
                
                    true
                
                 | 
            
            |
ignorePaths | 
            
            Array.<string> | 
                
                    <optional> | 
            
            
                
                
                    ["test-resources/sap/ui/qunit/testrunner.html"]
                
                 | 
            
            
    SAP target CSP middleware options
    Type:
- object