using System.Collections.Generic; namespace Kreta.Client.FileService.Extension { internal static class HeaderExtension { public static Dictionary GetAuthorizationHeaderWithMulitpartFrom(this string token) => new Dictionary { { "Content-Type", "multipart/form-data" }, { "Authorization", $"Bearer {token}" }, }; public static Dictionary GetAuthorizationHeaderWithJson(this string token) => new Dictionary { { "Content-Type", "application/json" }, { "Authorization", $"Bearer {token}" }, }; public static Dictionary GetFormUrlEncodedHeader() => new Dictionary { { "Content-Type", "application/x-www-form-urlencoded" }, }; } }