EnsureSuccessStatusCode
public DurableHttpResponse EnsureSuccessStatusCode()Returns
This response.
Exceptions
System.Net.Http.HttpRequestException- The response doesn't have a success status code.
public DurableHttpResponse EnsureSuccessStatusCode()System.Net.Http.HttpRequestExceptionpublic string? GetHeader(string name)name, or null when the response doesn't have it.namestringnull.public string ReadAsString()public T? ReadFromJson<T>(JsonSerializerOptions? options = null)default for empty content.optionsJsonSerializerOptions?null for the System.Text.Json.JsonSerializerDefaults.Web defaults.