#nullable disable
#pragma warning disable CS1591
using System.Net;
using MediaBrowser.Common;
using Microsoft.AspNetCore.Http;
namespace MediaBrowser.Controller
{
///
/// Interface IServerApplicationHost.
///
public interface IServerApplicationHost : IApplicationHost
{
bool CoreStartupHasCompleted { get; }
///
/// Gets the HTTP server port.
///
/// The HTTP server port.
int HttpPort { get; }
///
/// Gets the HTTPS port.
///
/// The HTTPS port.
int HttpsPort { get; }
///
/// Gets a value indicating whether the server should listen on an HTTPS port.
///
bool ListenWithHttps { get; }
///
/// Gets the name of the friendly.
///
/// The name of the friendly.
string FriendlyName { get; }
///
/// Gets a URL specific for the request.
///
/// The instance.
/// An accessible URL.
string GetSmartApiUrl(HttpRequest request);
///
/// Gets a URL specific for the request.
///
/// The remote of the connection.
/// An accessible URL.
string GetSmartApiUrl(IPAddress remoteAddr);
///
/// Gets a URL specific for the request.
///
/// The hostname used in the connection.
/// An accessible URL.
string GetSmartApiUrl(string hostname);
///
/// Gets an URL that can be used to access the API over LAN.
///
/// An optional IP address to use.
/// A value indicating whether to allow HTTPS.
/// The API URL.
string GetApiUrlForLocalAccess(IPAddress ipAddress = null, bool allowHttps = true);
///
/// Gets a local (LAN) URL that can be used to access the API.
/// Note: if passing non-null scheme or port it is up to the caller to ensure they form the correct pair.
///
/// The hostname to use in the URL.
///
/// The scheme to use for the URL. If null, the scheme will be selected automatically,
/// preferring HTTPS, if available.
///
///
/// The port to use for the URL. If null, the port will be selected automatically,
/// preferring the HTTPS port, if available.
///
/// The API URL.
string GetLocalApiUrl(string hostname, string scheme = null, int? port = null);
string ExpandVirtualPath(string path);
string ReverseVirtualPath(string path);
}
}