Class HttpExtensions
Namespace: System.Dynamic.ExpandoObject
Assembly: Microsoft.Rest.ClientRuntime.dll
Syntax
public static class HttpExtensions
Methods
AsFormattedString(HttpRequestMessage)
Declaration
public static string AsFormattedString (this System.Net.Http.HttpRequestMessage httpRequest);
Parameters
HttpRequestMessage
httpRequest
|
Returns
String
|
AsFormattedString(HttpResponseMessage)
Declaration
public static string AsFormattedString (this System.Net.Http.HttpResponseMessage httpResponse);
Parameters
HttpResponseMessage
httpResponse
|
Returns
String
|
AsFormattedString<TKey,TValue>(IDictionary<TKey,TValue>)
Declaration
public static string AsFormattedString<TKey,TValue> (this System.Collections.Generic.IDictionary<TKey,TValue> dictionary);
Parameters
IDictionary<TKey,TValue>
dictionary
|
Returns
String
|
Type Parameters
TKey
|
TValue
|
AsString(HttpContent)
Declaration
public static string AsString (this System.Net.Http.HttpContent content);
Parameters
HttpContent
content
|
Returns
String
|
GetContentHeaders(HttpRequestMessage)
Declaration
public static System.Net.Http.Headers.HttpHeaders GetContentHeaders (this System.Net.Http.HttpRequestMessage request);
Parameters
HttpRequestMessage
request
|
Returns
HttpHeaders
|
GetContentHeaders(HttpResponseMessage)
Declaration
public static System.Net.Http.Headers.HttpHeaders GetContentHeaders (this System.Net.Http.HttpResponseMessage response);
Parameters
HttpResponseMessage
response
|
Returns
HttpHeaders
|
GetHeadersAsJson(HttpResponseMessage)
Declaration
public static Newtonsoft.Json.Linq.JObject GetHeadersAsJson (this System.Net.Http.HttpResponseMessage message);
Parameters
HttpResponseMessage
message
|
Returns
JObject
|
ToJson(IDictionary<String,IEnumerable<String>>)
Declaration
public static Newtonsoft.Json.Linq.JObject ToJson (this System.Collections.Generic.IDictionary<string,System.Collections.Generic.IEnumerable<string>> headers);
Parameters
IDictionary<String,IEnumerable<String>>
headers
|
Returns
JObject
|
ToJson(HttpHeaders)
Declaration
public static Newtonsoft.Json.Linq.JObject ToJson (this System.Net.Http.Headers.HttpHeaders headers);
Parameters
HttpHeaders
headers
|
Returns
JObject
|