Development · Native API migration preview · Coverage validation in progress Published release →

API Browser

Method

GetLocalPort

func GetLocalPort() -> Result<int, HttpError>

Declaring type: HttpServer
Module: System.Web.Http
Assembly: System.Web.dll
Source file: HttpServer.rvn

Returns the listener's bound port.

Return value

Result<Int32, HttpError>

The selected port or HttpError.Transport carrying the socket error.