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

This commit is contained in:
2023-03-31 09:19:22 -07:00
parent b9e1f2ca7d
commit 6a7f6ce096
4 changed files with 27 additions and 9 deletions

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");