python (12.9k questions)
javascript (9.2k questions)
reactjs (4.7k questions)
java (4.2k questions)
java (4.2k questions)
c# (3.5k questions)
c# (3.5k questions)
html (3.3k questions)
How to assign Headers to HttpRequestMessage?
I wanted to assign the headers first like this:
> requestMsg.Headers <- seq { "x-rapidapi-host", "yh-finance.p.rapidapi.com"; "x-rapidapi-key", "3a9XXXXXXXXXXX...
Alex_P
Votes: 0
Answers: 0
Parameter count mismatch Exception when mocking HttpClient in F#
I'm trying to mock the .NET HttpClient with Moq in F#. I currently have the following code:
open System.Net.Http
open Foq
[<Fact>]
let ``Some test`` () =
Mock<HttpClient>.With
...

Roald
Votes: 0
Answers: 1
Making a HttpClient request from a different Azure region
I need to test the availability of my API from code, from a specific region (e.g. Asia Pacific or something). Does Azure provide some service / library which makes it possible to achieve something lik...
HelloWorld
Votes: 0
Answers: 1
{System.Net.Sockets.SocketException (10054): An existing connection was forcibly closed by the remote host.} C#
I have a C# code which uses HttpClient.SendAsync method to make an API call to azure maps API. When I run this code, I'm getting following error.
{System.Net.Sockets.SocketException (10054): An exist...
Surya
Votes: 0
Answers: 1