mirror of
https://github.com/Smaug123/WoofWare.Myriad
synced 2025-10-12 07:28:39 +00:00
Implement HttpResponseMessage return type (#40)
This commit is contained in:
@@ -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 (
|
||||
|
Reference in New Issue
Block a user