Share via


DurableHttpResponse Constructor

Definition

Initializes a new instance of the DurableHttpResponse class.

[Newtonsoft.Json.JsonConstructor]
public DurableHttpResponse (System.Net.HttpStatusCode statusCode, System.Collections.Generic.IDictionary<string,Microsoft.Extensions.Primitives.StringValues> headers = default, string content = default);
[<Newtonsoft.Json.JsonConstructor>]
new Microsoft.Azure.WebJobs.Extensions.DurableTask.DurableHttpResponse : System.Net.HttpStatusCode * System.Collections.Generic.IDictionary<string, Microsoft.Extensions.Primitives.StringValues> * string -> Microsoft.Azure.WebJobs.Extensions.DurableTask.DurableHttpResponse
Public Sub New (statusCode As HttpStatusCode, Optional headers As IDictionary(Of String, StringValues) = Nothing, Optional content As String = Nothing)

Parameters

statusCode
HttpStatusCode

HTTP Status code returned from the HTTP call.

headers
IDictionary<String,StringValues>

Headers returned from the HTTP call.

content
String

Content returned from the HTTP call.

Attributes
Newtonsoft.Json.JsonConstructorAttribute

Applies to