Commit 826e3b8
[Repo Assist] refactor: return HttpResponseMessage from CallAsync and align generated response handling (#385)
* fix: expose HTTP response headers via LastResponseHeaders (closes #179)
- Change CallAsync to return Task<HttpResponseMessage> instead of Task<HttpContent>
- Add mutable LastResponseHeaders property to ProvidedApiClientBase so callers
can inspect response headers after each operation call
- Add collectResponseHeaders helper to RuntimeHelpers
- Update OperationCompiler quotations to use response.Content where content was previously used directly
- Add 4 new unit tests for LastResponseHeaders behaviour
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
* ci: trigger checks
* fix: remove LastResponseHeaders and keep CallAsync response return
Agent-Logs-Url: https://github.com/fsprojects/SwaggerProvider/sessions/7b6606ed-f420-4df8-9e59-bbfd17333974
Co-authored-by: sergey-tihon <1197905+sergey-tihon@users.noreply.github.com>
* Update tests/SwaggerProvider.Tests/RuntimeHelpersTests.fs
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
---------
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: sergey-tihon <1197905+sergey-tihon@users.noreply.github.com>
Co-authored-by: Sergey Tihon <sergey.tihon@gmail.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>1 parent 0d0d645 commit 826e3b8
3 files changed
Lines changed: 7 additions & 8 deletions
File tree
- src
- SwaggerProvider.DesignTime
- SwaggerProvider.Runtime
- tests/SwaggerProvider.Tests
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
432 | 432 | | |
433 | 433 | | |
434 | 434 | | |
435 | | - | |
| 435 | + | |
436 | 436 | | |
437 | 437 | | |
438 | 438 | | |
| |||
444 | 444 | | |
445 | 445 | | |
446 | 446 | | |
447 | | - | |
| 447 | + | |
448 | 448 | | |
449 | 449 | | |
450 | 450 | | |
| |||
456 | 456 | | |
457 | 457 | | |
458 | 458 | | |
459 | | - | |
| 459 | + | |
460 | 460 | | |
461 | 461 | | |
462 | 462 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
46 | 46 | | |
47 | 47 | | |
48 | 48 | | |
49 | | - | |
| 49 | + | |
50 | 50 | | |
51 | 51 | | |
52 | 52 | | |
53 | 53 | | |
54 | | - | |
| 54 | + | |
55 | 55 | | |
56 | 56 | | |
57 | 57 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
563 | 563 | | |
564 | 564 | | |
565 | 565 | | |
566 | | - | |
567 | | - | |
| 566 | + | |
| 567 | + | |
568 | 568 | | |
569 | 569 | | |
570 | 570 | | |
| |||
588 | 588 | | |
589 | 589 | | |
590 | 590 | | |
591 | | - | |
592 | 591 | | |
593 | 592 | | |
594 | 593 | | |
| |||
0 commit comments