mirror of
https://github.com/JKorf/CryptoExchange.Net.git
synced 2026-10-05 02:41:10 +00:00
Added option to send additional headers for each request or for individual requests, added HttpMethod parameter position configuration to rest client
This commit is contained in:
@@ -1,4 +1,6 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Net.Http;
|
||||
using System.Net.Http.Headers;
|
||||
using System.Text;
|
||||
@@ -63,6 +65,12 @@ namespace CryptoExchange.Net.Requests
|
||||
request.Headers.Add(key, value);
|
||||
}
|
||||
|
||||
/// <inheritdoc />
|
||||
public Dictionary<string, IEnumerable<string>> GetHeaders()
|
||||
{
|
||||
return request.Headers.ToDictionary(h => h.Key, h => h.Value);
|
||||
}
|
||||
|
||||
/// <inheritdoc />
|
||||
public void SetContent(byte[] data)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user