mirror of
				https://github.com/lantean-code/qbtmud.git
				synced 2025-11-03 21:43:19 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			15 lines
		
	
	
		
			574 B
		
	
	
	
		
			C#
		
	
	
	
	
	
			
		
		
	
	
			15 lines
		
	
	
		
			574 B
		
	
	
	
		
			C#
		
	
	
	
	
	
namespace Lantean.QBitTorrentClient
 | 
						|
{
 | 
						|
    internal static class HttpClientExtensions
 | 
						|
    {
 | 
						|
        public static Task<HttpResponseMessage> PostAsync(this HttpClient httpClient, string requestUrl, FormUrlEncodedBuilder builder)
 | 
						|
        {
 | 
						|
            return httpClient.PostAsync(requestUrl, builder.ToFormUrlEncodedContent());
 | 
						|
        }
 | 
						|
 | 
						|
        public static Task<HttpResponseMessage> GetAsync(this HttpClient httpClient, string requestUrl, QueryBuilder builder)
 | 
						|
        {
 | 
						|
            return httpClient.GetAsync($"{requestUrl}{builder.ToQueryString()}");
 | 
						|
        }
 | 
						|
    }
 | 
						|
} |