Module utils/net-server-utils
Functions
getContent
- getContent(uri: PathLike): Promise<string>
-
Parameters
Returns Promise<string>
getContentFrom
- getContentFrom(url: string): Promise<string>
-
Parameters
Returns Promise<string>
getContentFromFile
- getContentFromFile(path: PathLike, encoding?: "utf8"): Promise<string>
-
Parameters
-
path: PathLike
-
encoding: "utf8" = "utf8"
Returns Promise<string>
getContentFromUrl
- getContentFromUrl(url: URL): Promise<string>
-
Parameters
Returns Promise<string>
getPublicIp
- getPublicIp(): Promise<string>
serverDownloadFile
- serverDownloadFile(url: string, fileName: string): void
-
Parameters
-
url: string
-
fileName: string
Returns void
use getContentFromUrl instead