Created
March 21, 2020 14:14
-
-
Save KiptoonKipkurui/42b4af13921bcb86f7f2aa61d76dc5f3 to your computer and use it in GitHub Desktop.
http client helper methods
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
private static HttpRequestMessage CreateRequest(string url,HttpMethod method) | |
{ | |
var uri = new Uri(ApiBaseUrl + url); | |
var webrequest = new HttpRequestMessage(method,uri); | |
return webrequest; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment