aboutsummaryrefslogtreecommitdiff
path: root/MediaBrowser.Controller/Net/IHttpServer.cs
diff options
context:
space:
mode:
authorAnthony Lavado <anthony@lavado.ca>2020-09-03 09:45:17 -0400
committerGitHub <noreply@github.com>2020-09-03 09:45:17 -0400
commita2d6ea2eed58b5cd1ecb519e3eda820f336d5485 (patch)
tree6b0de55286f857587df1562a30c350432f33c1c7 /MediaBrowser.Controller/Net/IHttpServer.cs
parent8c28824c8878e409ca426e4860dc3f05521f39b8 (diff)
parent993c46f98d995bd1c06b6040833be554717bd0ca (diff)
Merge pull request #4043 from cvium/remove_shit_and_shit_adjacent_shit
Split HttpListenerHost into middlewares
Diffstat (limited to 'MediaBrowser.Controller/Net/IHttpServer.cs')
-rw-r--r--MediaBrowser.Controller/Net/IHttpServer.cs49
1 files changed, 0 insertions, 49 deletions
diff --git a/MediaBrowser.Controller/Net/IHttpServer.cs b/MediaBrowser.Controller/Net/IHttpServer.cs
deleted file mode 100644
index 637dd2be3..000000000
--- a/MediaBrowser.Controller/Net/IHttpServer.cs
+++ /dev/null
@@ -1,49 +0,0 @@
-using System;
-using System.Collections.Generic;
-using System.Threading.Tasks;
-using Jellyfin.Data.Events;
-using Microsoft.AspNetCore.Http;
-
-namespace MediaBrowser.Controller.Net
-{
- /// <summary>
- /// Interface IHttpServer.
- /// </summary>
- public interface IHttpServer
- {
- /// <summary>
- /// Gets the URL prefix.
- /// </summary>
- /// <value>The URL prefix.</value>
- string[] UrlPrefixes { get; }
-
- /// <summary>
- /// Occurs when [web socket connected].
- /// </summary>
- event EventHandler<GenericEventArgs<IWebSocketConnection>> WebSocketConnected;
-
- /// <summary>
- /// Inits this instance.
- /// </summary>
- void Init(IEnumerable<IWebSocketListener> listener, IEnumerable<string> urlPrefixes);
-
- /// <summary>
- /// If set, all requests will respond with this message.
- /// </summary>
- string GlobalResponse { get; set; }
-
- /// <summary>
- /// The HTTP request handler.
- /// </summary>
- /// <param name="context"></param>
- /// <returns></returns>
- Task RequestHandler(HttpContext context);
-
- /// <summary>
- /// Get the default CORS headers.
- /// </summary>
- /// <param name="httpContext">The HTTP context of the current request.</param>
- /// <returns>The default CORS headers for the context.</returns>
- IDictionary<string, string> GetDefaultCorsHeaders(HttpContext httpContext);
- }
-}