Constructor
new WebLink(data, context)
Create a new WebLink.
Parameters:
| Name | Type | Description | 
|---|---|---|
data | 
            
            Object | the field values for the link  | 
        
context | 
            
            Context | The resource context containing the link  | 
        
- Source:
 
Methods
follow(optionsopt)
Dereference the link, returning an asynchronously populated Resource.
Parameters:
| Name | Type | Attributes | Description | ||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
options | 
            
            Object | 
                
                    <optional> | 
            
            
            The options for the request. Properties
  | 
        
- Source:
 - Tutorials:
 
resolvedUrl(data)
The resolvedUrl function of a HyRes.WebLink can be used to see what the final resolved URL will be for the link once processing:
- URI Template parameters passed in the 
dataargument. - Converting any relative URLs to absolute ones given the context of the web link, i.e. the URL of the response that contained the link.
 
Parameters:
| Name | Type | Description | 
|---|---|---|
data | 
            
            Object | The values to optionally insert into any URI template used for the   | 
        
- Source: