2019-05-18 02:00:56 +02:00
|
|
|
|
namespace ElectronNET.API.Entities
|
2017-10-16 16:53:35 +02:00
|
|
|
|
{
|
2017-10-24 21:43:27 +02:00
|
|
|
|
/// <summary>
|
2025-11-22 02:16:10 +01:00
|
|
|
|
/// Options for BrowserWindow.loadURL(url, options) / webContents.loadURL(url, options).
|
|
|
|
|
|
/// Matches Electron's loadURL options.
|
2017-10-24 21:43:27 +02:00
|
|
|
|
/// </summary>
|
2025-11-22 02:16:10 +01:00
|
|
|
|
/// <remarks>Up-to-date with Electron API 39.2</remarks>
|
2017-10-16 16:53:35 +02:00
|
|
|
|
public class LoadURLOptions
|
|
|
|
|
|
{
|
|
|
|
|
|
/// <summary>
|
2025-11-22 02:16:10 +01:00
|
|
|
|
/// An HTTP Referrer URL. In Electron this may be a string or a Referrer object.
|
2017-10-16 16:53:35 +02:00
|
|
|
|
/// </summary>
|
|
|
|
|
|
public string HttpReferrer { get; set; }
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// A user agent originating the request.
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
public string UserAgent { get; set; }
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
2025-11-22 02:16:10 +01:00
|
|
|
|
/// Base URL (with trailing path separator) for files to be loaded by the data URL.
|
|
|
|
|
|
/// Needed only if the specified URL is a data URL and needs to load other files.
|
2017-10-16 16:53:35 +02:00
|
|
|
|
/// </summary>
|
|
|
|
|
|
public string BaseURLForDataURL { get; set; }
|
2018-03-16 22:32:56 +03:00
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
2025-11-22 02:16:10 +01:00
|
|
|
|
/// Extra headers separated by "\n".
|
2018-03-16 22:32:56 +03:00
|
|
|
|
/// </summary>
|
|
|
|
|
|
public string ExtraHeaders { get; set; }
|
2021-03-12 16:31:29 +01:00
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
2025-11-22 02:16:10 +01:00
|
|
|
|
/// Post data for the request. Matches Electron's postData: (UploadRawData | UploadFile)[]
|
2021-03-12 16:31:29 +01:00
|
|
|
|
/// </summary>
|
|
|
|
|
|
public IPostData[] PostData { get; set; }
|
2017-10-16 16:53:35 +02:00
|
|
|
|
}
|
|
|
|
|
|
}
|