mirror of
https://github.com/Smaug123/WoofWare.Myriad
synced 2025-10-13 16:08:40 +00:00
Allow stream return type (#39)
This commit is contained in:
@@ -3,6 +3,7 @@ namespace PureGym
|
||||
open System
|
||||
open System.Threading
|
||||
open System.Threading.Tasks
|
||||
open System.IO
|
||||
open RestEase
|
||||
|
||||
[<WoofWare.Myriad.Plugins.HttpClient>]
|
||||
@@ -29,3 +30,12 @@ type IPureGymApi =
|
||||
|
||||
[<Get "endpoint/{param}">]
|
||||
abstract GetPathParam : [<Path "param">] parameter : string * ?ct : CancellationToken -> Task<string>
|
||||
|
||||
[<Get "endpoint">]
|
||||
abstract GetStream : ?ct : CancellationToken -> Task<System.IO.Stream>
|
||||
|
||||
[<Get "endpoint">]
|
||||
abstract GetStream' : ?ct : CancellationToken -> Task<IO.Stream>
|
||||
|
||||
[<Get "endpoint">]
|
||||
abstract GetStream'' : ?ct : CancellationToken -> Task<Stream>
|
||||
|
Reference in New Issue
Block a user