using System; using System.Collections.Generic; using System.Threading.Tasks; using Jellyfin.Data.Events; using Microsoft.AspNetCore.Http; namespace MediaBrowser.Controller.Net { /// /// Interface IHttpServer. /// public interface IHttpServer { /// /// Gets the URL prefix. /// /// The URL prefix. string[] UrlPrefixes { get; } /// /// Occurs when [web socket connected]. /// event EventHandler> WebSocketConnected; /// /// Inits this instance. /// void Init(IEnumerable listener, IEnumerable urlPrefixes); /// /// If set, all requests will respond with this message. /// string GlobalResponse { get; set; } /// /// The HTTP request handler. /// /// /// Task RequestHandler(HttpContext context); /// /// Get the default CORS headers. /// /// The HTTP context of the current request. /// The default CORS headers for the context. IDictionary GetDefaultCorsHeaders(HttpContext httpContext); } }