From 0440c722a221b8068bbf388c1c0c51f0faff0451 Mon Sep 17 00:00:00 2001 From: Lucas Faria Mendes Date: Mon, 30 Mar 2026 14:17:46 -0300 Subject: some dlls --- Gestor.Common/Gestor.Common.Helpers/HttpHelper.cs | 31 +++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 Gestor.Common/Gestor.Common.Helpers/HttpHelper.cs (limited to 'Gestor.Common/Gestor.Common.Helpers/HttpHelper.cs') diff --git a/Gestor.Common/Gestor.Common.Helpers/HttpHelper.cs b/Gestor.Common/Gestor.Common.Helpers/HttpHelper.cs new file mode 100644 index 0000000..de15cd1 --- /dev/null +++ b/Gestor.Common/Gestor.Common.Helpers/HttpHelper.cs @@ -0,0 +1,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> 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>)keyValuePairs); + } +} -- cgit v1.2.3