Class WMHTTPRequest
Handles the behavior for making requests to WMHTTPConnections
Implements
Inherited Members
Namespace: Quantellia.WMServer.Asset.Model.HTTP.Request
Assembly: WMServer.dll
Syntax
[HasDTO(typeof(WMHTTPRequestDTO))]
public class WMHTTPRequest : WMAssetBase, IWMAsset, IDbEntity, IWMEntity, IDocumentedEntity, INamedEntity, IWMAssetDirectoryMember, IWMPrincipalOwned, IWMVersionableAsset, IWMOwnableResource, IWMResource
Constructors
WMHTTPRequest()
Default constructor
Declaration
public WMHTTPRequest()
WMHTTPRequest(string)
Constructor that initializes the ID
Declaration
public WMHTTPRequest(string id)
Parameters
Type | Name | Description |
---|---|---|
string | id |
Properties
HTTPConnection
The WMHTTPConnection that this request requests from.
Declaration
public WMHTTPConnection HTTPConnection { get; set; }
Property Value
Type | Description |
---|---|
WMHTTPConnection |
Headers
Optional headers to add to and overwrite the Headers contained in the HTTPConnection
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 WMHTTPRequest.HTTPMethod Method { get; set; }
Property Value
Type | Description |
---|---|
WMHTTPRequest.HTTPMethod |
Route
An additional path on top of the HTTPConnection's Endpoint
Declaration
public string Route { get; set; }
Property Value
Type | Description |
---|---|
string |
Methods
ResourceDefinition()
The resource operation definition for this asset.
Declaration
public static WMResourceOperationsDefinition ResourceDefinition()
Returns
Type | Description |
---|---|
WMResourceOperationsDefinition |