mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-08-31 17:41:29 +00:00
update async stream writing
This commit is contained in:
parent
61aa25c358
commit
2e91d69d20
9 changed files with 141 additions and 311 deletions
|
|
@ -699,5 +699,10 @@ namespace MediaBrowser.Server.Implementations.HttpServer
|
|||
|
||||
throw error;
|
||||
}
|
||||
|
||||
public object GetAsyncStreamWriter(Func<Stream, Task> streamWriter, IDictionary<string, string> responseHeaders = null)
|
||||
{
|
||||
return new AsyncStreamWriterFunc(streamWriter, responseHeaders);
|
||||
}
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue