Modified ClientGenerator to support responses as a parameter input. Improved streams support. Bumped package version to 1.4.8

This commit is contained in:
MattMo committed 2023-03-31 09:19:22 -07:00
1 parent b9e1f2ca7d
commit 6a7f6ce096
4 files changed
+27 -9

No files matched your search

+1 -1
View File
@@ -215,7 +215,7 @@ namespace MontoyaTech.Rest.Net.Example
}
[RouteGroup("Stream")]
[RouteResponse(typeof(MemoryStream))]
[RouteResponse(typeof(FileStream), Parameter = true)]
public static HttpListenerResponse Download(HttpListenerContext context)
{
return context.Response.WithStatus(HttpStatusCode.OK).WithText("Hello world");