mirror of
https://github.com/jellyfin/jellyfin.git
synced 2025-12-20 07:45:26 +03:00
Moved the http server to it's own assembly. added comments and made other minor re-organizations.
This commit is contained in:
parent
6fbd5cf464
commit
80b3ad7bd2
16
MediaBrowser.Api/HttpHandlers/JsonHandler.cs
Normal file
16
MediaBrowser.Api/HttpHandlers/JsonHandler.cs
Normal file
@@ -0,0 +1,16 @@
|
||||
using System.IO;
|
||||
using MediaBrowser.Common.Json;
|
||||
using MediaBrowser.Net.Handlers;
|
||||
|
||||
namespace MediaBrowser.Api.HttpHandlers
|
||||
{
|
||||
public abstract class JsonHandler : BaseJsonHandler
|
||||
{
|
||||
protected abstract object ObjectToSerialize { get; }
|
||||
|
||||
protected override void WriteResponseToOutputStream(Stream stream)
|
||||
{
|
||||
JsonSerializer.SerializeToStream(ObjectToSerialize, stream);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user