You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello, hope you're good. I'm currently reading this article from Microsoft and trying to replicate it with F#. I'm able to extract the HttpClient from the HttpContext, but I'm not sure how to pass it to the FsHttp to use.
For example, I have a function that receives the HttpContext's (httpClient: HttpClient) as parameter, with the chaos engineering configuration:
http {
config_setHttpClientFactory (fun _config -> httpClient)
GET serviceURL
AuthorizationUserPw user passw
}
Description:
Hello, hope you're good. I'm currently reading this article from Microsoft and trying to replicate it with F#. I'm able to extract the HttpClient from the HttpContext, but I'm not sure how to pass it to the FsHttp to use.
For example, I have a function that receives the HttpContext's
(httpClient: HttpClient)
as parameter, with the chaos engineering configuration:Is this the right way to use it? I was +/- inspired by this test scenario: https://github.com/fsprojects/FsHttp/blob/master/src/Tests/DotNetHttp.fs.
Edit:
It's missing something, because when I try to run this request using the different httpClient it does not work properly.
The text was updated successfully, but these errors were encountered: