electron/docs/api
Fedor Indutny 6bfef67aae
feat: session.resolveHost (#37690)
* feat: session.resolveHost

Expose Chromium's host resolution API through the Session object.

* Update shell/browser/api/electron_api_session.cc

Co-authored-by: Jeremy Rose <nornagon@nornagon.net>

* address feedback

* fix tests

* address feedback

* Add options

* Update shell/browser/api/electron_api_session.cc

Co-authored-by: Cheng Zhao <github@zcbenz.com>

* Update shell/browser/net/resolve_host_function.cc

Co-authored-by: Cheng Zhao <github@zcbenz.com>

* lint

* return object

* add missing file

* fix crash

* handle scope

* links

---------

Co-authored-by: Fedor Indutny <indutny@signal.org>
Co-authored-by: Fedor Indutny <79877362+indutny-signal@users.noreply.github.com>
Co-authored-by: Jeremy Rose <nornagon@nornagon.net>
Co-authored-by: Cheng Zhao <github@zcbenz.com>
2023-04-05 10:06:14 -04:00
..
structures feat: session.resolveHost (#37690) 2023-04-05 10:06:14 -04:00
accelerator.md docs: type names changed from wrapper to primitive (#31752) 2021-11-15 22:13:18 -06:00
app.md docs: fix app.getPreferredSystemLanguages() return type (#37821) 2023-04-05 09:31:53 -04:00
auto-updater.md docs: change MSDN links to new Microsoft docs (#37603) 2023-03-21 11:39:19 -04:00
browser-view.md chore: disallow shortcut reference links in docs Markdown (#36860) 2023-01-16 10:22:49 +01:00
browser-window.md chore: enforce consistent Markdown style for strong and emphasis (#37787) 2023-04-03 13:20:10 +02:00
client-request.md feat: add protocol.handle (#36674) 2023-03-27 10:00:55 -07:00
clipboard.md docs(clipboard): fix an issue of demo code (#37438) 2023-03-02 12:24:59 +01:00
command-line-switches.md chore: disallow shortcut reference links in docs Markdown (#36860) 2023-01-16 10:22:49 +01:00
command-line.md docs: type names changed from wrapper to primitive (#31752) 2021-11-15 22:13:18 -06:00
content-tracing.md docs: update links to Chromium source (#33309) 2022-03-17 13:45:55 +01:00
context-bridge.md docs: add missing ipcRenderer require to example code (#37134) 2023-02-06 14:40:16 +09:00
cookies.md feat: add httpOnly cookies.get filter (#37255) 2023-02-21 11:44:35 +01:00
crash-reporter.md docs: add Bugsnag as a 3rd party crash server (#32053) 2022-01-03 14:48:15 -05:00
debugger.md docs: cleanup reference links (#36659) 2023-01-11 22:16:34 -08:00
desktop-capturer.md chore: disallow shortcut reference links in docs Markdown (#36860) 2023-01-16 10:22:49 +01:00
dialog.md docs: explicitly allow string for MessageBoxOptions.icon (#32422) 2022-01-13 10:30:15 +09:00
dock.md docs: fix broken links (#36519) 2022-12-05 13:18:57 -05:00
download-item.md docs: type names changed from wrapper to primitive (#31752) 2021-11-15 22:13:18 -06:00
environment-variables.md chore: fix typos (#34731) 2022-07-05 11:49:56 -04:00
extensions.md docs: fix loadExtension example (#36489) 2022-11-30 11:29:02 -08:00
file-object.md
global-shortcut.md docs: improve globalShortcut and hookWindowMessage types (#37115) 2023-02-02 12:31:28 -08:00
in-app-purchase.md feat: added username to IAP purchaseProduct method (#35902) 2022-12-12 10:11:48 -08:00
incoming-message.md feat: add rawHeaders to IncomingMessage (#31853) 2022-01-24 11:46:15 -05:00
ipc-main.md chore: disallow shortcut reference links in docs Markdown (#36860) 2023-01-16 10:22:49 +01:00
ipc-renderer.md chore: disallow shortcut reference links in docs Markdown (#36860) 2023-01-16 10:22:49 +01:00
menu-item.md chore: enforce consistent Markdown style for strong and emphasis (#37787) 2023-04-03 13:20:10 +02:00
menu.md chore: enforce consistent Markdown style for strong and emphasis (#37787) 2023-04-03 13:20:10 +02:00
message-channel-main.md
message-port-main.md docs: fix broken links (#36519) 2022-12-05 13:18:57 -05:00
native-image.md chore: enforce consistent Markdown style for strong and emphasis (#37787) 2023-04-03 13:20:10 +02:00
native-theme.md feat: add nativeTheme.inForcedColorsMode (#32956) 2022-03-21 10:30:02 +01:00
net-log.md docs: type names changed from wrapper to primitive (#31752) 2021-11-15 22:13:18 -06:00
net.md feat: add protocol.handle (#36674) 2023-03-27 10:00:55 -07:00
notification.md docs: update notifications tutorial (#37602) 2023-03-21 21:40:43 -04:00
parent-port.md docs: fix broken links (#36519) 2022-12-05 13:18:57 -05:00
power-monitor.md docs: type names changed from wrapper to primitive (#31752) 2021-11-15 22:13:18 -06:00
power-save-blocker.md docs: type names changed from wrapper to primitive (#31752) 2021-11-15 22:13:18 -06:00
process.md docs: fixed a typo in process.defaultApp doc (#37342) 2023-02-20 13:06:19 +01:00
protocol.md feat: add protocol.handle (#36674) 2023-03-27 10:00:55 -07:00
push-notifications.md docs: update broken links (#37610) 2023-03-20 10:25:54 -04:00
safe-storage.md fix: fix a crash in safeStorage on Linux (#33913) 2022-05-09 09:38:53 -04:00
screen.md docs: type names changed from wrapper to primitive (#31752) 2021-11-15 22:13:18 -06:00
service-workers.md chore: bump chromium to 99.0.4767.0 (main) (#31986) 2022-01-10 17:31:39 -05:00
session.md feat: session.resolveHost (#37690) 2023-04-05 10:06:14 -04:00
share-menu.md docs: type names changed from wrapper to primitive (#31752) 2021-11-15 22:13:18 -06:00
shell.md feat: add logUsage to shell.openExternal() options (#37139) 2023-02-14 17:53:18 +09:00
system-preferences.md docs: change MSDN links to new Microsoft docs (#37603) 2023-03-21 11:39:19 -04:00
touch-bar-button.md docs: type names changed from wrapper to primitive (#31752) 2021-11-15 22:13:18 -06:00
touch-bar-color-picker.md docs: type names changed from wrapper to primitive (#31752) 2021-11-15 22:13:18 -06:00
touch-bar-group.md fix: ensure the typescript definitions only export correct value types (#28712) 2021-06-15 13:50:31 -07:00
touch-bar-label.md docs: type names changed from wrapper to primitive (#31752) 2021-11-15 22:13:18 -06:00
touch-bar-other-items-proxy.md fix: ensure the typescript definitions only export correct value types (#28712) 2021-06-15 13:50:31 -07:00
touch-bar-popover.md docs: type names changed from wrapper to primitive (#31752) 2021-11-15 22:13:18 -06:00
touch-bar-scrubber.md docs: type names changed from wrapper to primitive (#31752) 2021-11-15 22:13:18 -06:00
touch-bar-segmented-control.md docs: type names changed from wrapper to primitive (#31752) 2021-11-15 22:13:18 -06:00
touch-bar-slider.md docs: type names changed from wrapper to primitive (#31752) 2021-11-15 22:13:18 -06:00
touch-bar-spacer.md docs: type names changed from wrapper to primitive (#31752) 2021-11-15 22:13:18 -06:00
touch-bar.md
tray.md chore: enforce consistent Markdown style for strong and emphasis (#37787) 2023-04-03 13:20:10 +02:00
utility-process.md chore: disallow shortcut reference links in docs Markdown (#36860) 2023-01-16 10:22:49 +01:00
web-contents.md chore: enforce consistent Markdown style for strong and emphasis (#37787) 2023-04-03 13:20:10 +02:00
web-frame-main.md docs: fix broken links (#36519) 2022-12-05 13:18:57 -05:00
web-frame.md docs: update heading level of webFrame.insertCSS (#33467) 2022-03-29 16:02:30 +09:00
web-request.md docs: correcting main example in WebRequest documentation (#36113) 2022-10-27 16:18:07 +09:00
webview-tag.md chore: enforce consistent Markdown style for strong and emphasis (#37787) 2023-04-03 13:20:10 +02:00
window-open.md feat: add ability to configure if window should close when opener closes (#31314) 2022-02-23 16:59:50 +09:00