[PR #107] [MERGED] WebContent.GetUrl() and LoadURLOptions.ExtraHeaders #1084

Open
opened 2026-01-29 16:57:10 +00:00 by claunia · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/ElectronNET/Electron.NET/pull/107
Author: @ru-sh
Created: 3/16/2018
Status: Merged
Merged: 7/22/2018
Merged by: @GregorBiswanger

Base: masterHead: master


📝 Commits (1)

📊 Changes

5 files changed (+34 additions, -2 deletions)

View changed files

📝 ElectronNET.API/Entities/LoadURLOptions.cs (+8 -1)
📝 ElectronNET.API/WebContents.cs (+16 -0)
📝 ElectronNET.Host/api/webContents.js (+4 -0)
📝 ElectronNET.Host/api/webContents.js.map (+1 -1)
📝 ElectronNET.Host/api/webContents.ts (+5 -0)

📄 Description

WebContent.GetUrl()
is used to get the Url of the loaded page. It's usefull if a web-server redirects you and you need to know where it redirects. For instance, It's useful in case of Implicit Authorization.

LoadURLOptions.ExtraHeaders
is used to setup additional page loading options. For example ExtraHeaders = "pragma: no-cache\n" forces Chrome to load web page without using of the cache.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/ElectronNET/Electron.NET/pull/107 **Author:** [@ru-sh](https://github.com/ru-sh) **Created:** 3/16/2018 **Status:** ✅ Merged **Merged:** 7/22/2018 **Merged by:** [@GregorBiswanger](https://github.com/GregorBiswanger) **Base:** `master` ← **Head:** `master` --- ### 📝 Commits (1) - [`959def9`](https://github.com/ElectronNET/Electron.NET/commit/959def9c86a7eba7c423091efd3c2c93b88c6b2f) + WebContent.GetUrl() ### 📊 Changes **5 files changed** (+34 additions, -2 deletions) <details> <summary>View changed files</summary> 📝 `ElectronNET.API/Entities/LoadURLOptions.cs` (+8 -1) 📝 `ElectronNET.API/WebContents.cs` (+16 -0) 📝 `ElectronNET.Host/api/webContents.js` (+4 -0) 📝 `ElectronNET.Host/api/webContents.js.map` (+1 -1) 📝 `ElectronNET.Host/api/webContents.ts` (+5 -0) </details> ### 📄 Description **WebContent.GetUrl()** is used to get the Url of the loaded page. It's usefull if a web-server redirects you and you need to know where it redirects. For instance, It's useful in case of Implicit Authorization. **LoadURLOptions.ExtraHeaders** is used to setup additional page loading options. For example ExtraHeaders = "pragma: no-cache\n" forces Chrome to load web page without using of the cache. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
claunia added the pull-request label 2026-01-29 16:57:10 +00:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/Electron.NET#1084