Class OpenDIHTTPRequest
Open DI representation of a WMHTTPRequest.
Inherited Members
Namespace: Quantellia.WMServer.OpenDI
Assembly: WMServer.dll
Syntax
public class OpenDIHTTPRequest : OpenDIAsset
Constructors
OpenDIHTTPRequest()
Default constructor
Declaration
public OpenDIHTTPRequest()
OpenDIHTTPRequest(WMHTTPRequest)
Constructor that initializes a new instance with the data from a WMModelBase object.
Declaration
public OpenDIHTTPRequest(WMHTTPRequest asset)
Parameters
Type | Name | Description |
---|---|---|
WMHTTPRequest | asset | The asset with which to initialize this OpenDIModel |
Properties
HTTPConnectionID
The WMHTTPConnection that this request requests from.
Declaration
public string HTTPConnectionID { get; set; }
Property Value
Type | Description |
---|---|
string |
Headers
Optional headers to add to and overwrite the Headers contained in the HTTPConnectionID
Declaration
public Dictionary<string, string> Headers { get; set; }
Property Value
Type | Description |
---|---|
Dictionary<string, string> |
Method
The method to call on this request.
Declaration
public string Method { get; set; }
Property Value
Type | Description |
---|---|
string |
Route
An additional path on top of the HTTPConnectionID's Endpoint
Declaration
public string Route { get; set; }
Property Value
Type | Description |
---|---|
string |
Methods
ToDTO()
Create a new WMHTTPConnectionDTO object that contains the properties of this OpenDIHTTPConnection
Declaration
public WMHTTPRequestDTO ToDTO()
Returns
Type | Description |
---|---|
WMHTTPRequestDTO | A WMHTTPConnectionDTO object that contains the properties of this OpenDIHTTPConnection |