-
Notifications
You must be signed in to change notification settings - Fork 59
[Repo Assist] refactor: return HttpResponseMessage from CallAsync and align generated response handling #385
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. Weβll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
03d2287
c623874
fb3b1b7
785f4d0
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -46,12 +46,12 @@ type ProvidedApiClientBase(httpClient: HttpClient, options: JsonSerializerOption | |
|
|
||
| member this.CallAsync | ||
| (request: HttpRequestMessage, errorCodes: string[], errorDescriptions: string[], cancellationToken: System.Threading.CancellationToken) | ||
| : Task<HttpContent> = | ||
| : Task<HttpResponseMessage> = | ||
| task { | ||
| let! response = this.HttpClient.SendAsync(request, cancellationToken) | ||
|
|
||
| if response.IsSuccessStatusCode then | ||
| return response.Content | ||
| return response | ||
| else | ||
|
Comment on lines
47
to
55
|
||
| let code = response.StatusCode |> int | ||
| let codeStr = code |> string | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.