blob: de15cd1acba32ad91f45abc3d5cf2f10d832f625 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
|
using System;
using System.Collections.Generic;
using System.Net;
using System.Net.Http;
namespace Gestor.Common.Helpers;
public static class HttpHelper
{
public static HttpRequestMessage CreateRequest(this Uri requestUri, HttpMethod httpMethod, Version httpVersion = null)
{
//IL_0000: Unknown result type (might be due to invalid IL or missing references)
//IL_0005: Unknown result type (might be due to invalid IL or missing references)
//IL_0015: Unknown result type (might be due to invalid IL or missing references)
//IL_001c: Unknown result type (might be due to invalid IL or missing references)
//IL_0024: Expected O, but got Unknown
return new HttpRequestMessage
{
Version = (httpVersion ?? HttpVersion.Version11),
RequestUri = requestUri,
Method = httpMethod
};
}
public static FormUrlEncodedContent Encode(this List<KeyValuePair<string, string>> keyValuePairs)
{
//IL_0001: Unknown result type (might be due to invalid IL or missing references)
//IL_0007: Expected O, but got Unknown
return new FormUrlEncodedContent((IEnumerable<KeyValuePair<string, string>>)keyValuePairs);
}
}
|