mirror of
https://github.com/denoland/std.git
synced 2024-11-22 04:59:05 +00:00
chore(net): mark getNetworkAddress()
unstable (#5348)
This commit is contained in:
parent
01587e3409
commit
a0b4103ac3
@ -1,5 +1,7 @@
|
|||||||
// Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.
|
// Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.
|
||||||
/**
|
/**
|
||||||
|
* **UNSTABLE**: New API, yet to be vetted.
|
||||||
|
*
|
||||||
* Gets the IPv4 or IPv6 network address of the machine.
|
* Gets the IPv4 or IPv6 network address of the machine.
|
||||||
*
|
*
|
||||||
* This is inspired by the util of the same name in
|
* This is inspired by the util of the same name in
|
||||||
@ -29,6 +31,8 @@
|
|||||||
*
|
*
|
||||||
* Deno.serve({ port: 0, hostname }, () => new Response("Hello, world!"));
|
* Deno.serve({ port: 0, hostname }, () => new Response("Hello, world!"));
|
||||||
* ```
|
* ```
|
||||||
|
*
|
||||||
|
* @experimental
|
||||||
*/
|
*/
|
||||||
export function getNetworkAddress(
|
export function getNetworkAddress(
|
||||||
family: Deno.NetworkInterfaceInfo["family"] = "IPv4",
|
family: Deno.NetworkInterfaceInfo["family"] = "IPv4",
|
||||||
|
Loading…
Reference in New Issue
Block a user