OxL Reference

method IpAddr.loopback

127.0.0.1, the IPv4 loopback address.

Example:

oxl✓ checked in CI
use std.net { IpAddr }

fn main() io {
  print(IpAddr.loopback().toString())
}
Output
127.0.0.1
pub(api) static fn loopback() -> IpAddr

Since. 1.0.0-beta

Returns

IpAddr

Effects

none declared (pure unless the body says otherwise)

Defined in: std/net/net.oxl:149

See also