using System.Threading.Tasks; using MediaBrowser.Common.Net; using MediaBrowser.Controller.Net; using ServiceStack.Web; using System; using System.Collections.Generic; namespace MediaBrowser.Server.Implementations.HttpServer { public interface IHttpListener : IDisposable { /// /// Gets or sets the error handler. /// /// The error handler. Action ErrorHandler { get; set; } /// /// Gets or sets the request handler. /// /// The request handler. Func RequestHandler { get; set; } /// /// Gets or sets the web socket handler. /// /// The web socket handler. Action WebSocketHandler { get; set; } /// /// Starts this instance. /// /// The URL prefixes. void Start(IEnumerable urlPrefixes); /// /// Stops this instance. /// void Stop(); } }