Implement HttpResponseMessage return type (#40)

This commit is contained in:
Patrick Stevens
2023-12-29 18:44:23 +00:00
committed by GitHub
parent 9e9744d37b
commit 346d6e8321
5 changed files with 139 additions and 0 deletions

View File

@@ -331,6 +331,7 @@ module internal HttpClientGenerator =
let returnExpr =
match info.ReturnType with
| HttpResponseMessage
| String
| Stream -> SynExpr.CreateIdentString "node"
| _ ->
@@ -400,6 +401,7 @@ module internal HttpClientGenerator =
)
)
match info.ReturnType with
| HttpResponseMessage -> yield Let ("node", SynExpr.CreateIdentString "response")
| String ->
yield
LetBang (