Net

Summary

Methods

Method Returns
GetHTTP(url: string) HttpResponse | nil
GetHTTP(url: string, options: HttpOptions) HttpResponse | nil
GetHTTPAsync(url: string, callback: callable) void
GetHTTPAsync(url: string, options: HttpOptions, callback: callable) void
GetHTTPAsync(url: string, context: any, callback: callable) void
GetHTTPAsync(url: string, options: HttpOptions, context: any, callback: callable) void
HeadHTTP(url: string) HttpResponse | nil
HeadHTTP(url: string, options: HttpOptions) HttpResponse | nil
HeadHTTPAsync(url: string, callback: callable) void
HeadHTTPAsync(url: string, options: HttpOptions, callback: callable) void
HeadHTTPAsync(url: string, context: any, callback: callable) void
HeadHTTPAsync(url: string, options: HttpOptions, context: any, callback: callable) void
PostHTTP(url: string, data: string) HttpResponse | nil
PostHTTP(url: string, data: string, options: HttpOptions) HttpResponse | nil
PostHTTPAsync(url: string, data: string, callback: callable) void
PostHTTPAsync(url: string, data: string, options: HttpOptions, callback: callable) void
PostHTTPAsync(url: string, data: string, context: any, callback: callable) void
PostHTTPAsync(url: string, data: string, options: HttpOptions, context: any, callback: callable) void
PutHTTP(url: string, data: string) HttpResponse | nil
PutHTTP(url: string, data: string, options: HttpOptions) HttpResponse | nil
PutHTTPAsync(url: string, data: string, callback: callable) void
PutHTTPAsync(url: string, data: string, options: HttpOptions, callback: callable) void
PutHTTPAsync(url: string, data: string, context: any, callback: callable) void
PutHTTPAsync(url: string, data: string, options: HttpOptions, context: any, callback: callable) void
DeleteHTTP(url: string) HttpResponse | nil
DeleteHTTP(url: string, data: string) HttpResponse | nil
DeleteHTTP(url: string, options: HttpOptions) HttpResponse | nil
DeleteHTTP(url: string, data: string, options: HttpOptions) HttpResponse | nil
DeleteHTTPAsync(url: string, callback: callable) void
DeleteHTTPAsync(url: string, data: string, callback: callable) void
DeleteHTTPAsync(url: string, options: HttpOptions, callback: callable) void
DeleteHTTPAsync(url: string, data: string, options: HttpOptions, callback: callable) void
DeleteHTTPAsync(url: string, context: any, callback: callable) void
DeleteHTTPAsync(url: string, data: string, context: any, callback: callable) void
DeleteHTTPAsync(url: string, options: HttpOptions, context: any, callback: callable) void
DeleteHTTPAsync(url: string, data: string, options: HttpOptions, context: any, callback: callable) void
OptionsHTTP(url: string) HttpResponse | nil
OptionsHTTP(url: string, options: HttpOptions) HttpResponse | nil
OptionsHTTPAsync(url: string, callback: callable) void
OptionsHTTPAsync(url: string, options: HttpOptions, callback: callable) void
OptionsHTTPAsync(url: string, context: any, callback: callable) void
OptionsHTTPAsync(url: string, options: HttpOptions, context: any, callback: callable) void
PatchHTTP(url: string, data: string) HttpResponse | nil
PatchHTTP(url: string, data: string, options: HttpOptions) HttpResponse | nil
PatchHTTPAsync(url: string, data: string, callback: callable) void
PatchHTTPAsync(url: string, data: string, options: HttpOptions, callback: callable) void
PatchHTTPAsync(url: string, data: string, context: any, callback: callable) void
PatchHTTPAsync(url: string, data: string, options: HttpOptions, context: any, callback: callable) void
Socket(family: NetSocketFamily, type: NetSocketType) NetSocket | nil

Methods

GetHTTP

GetHTTP(url: string): HttpResponse | nil

Parameters

Name Type Description
url string

Returns

Type Description
HttpResponse | nil

GetHTTP

GetHTTP(url: string, options: HttpOptions): HttpResponse | nil

Parameters

Name Type Description
url string
options HttpOptions

Returns

Type Description
HttpResponse | nil

GetHTTPAsync

GetHTTPAsync(url: string, callback: callable)

Parameters

Name Type Description
url string
callback callable A callback in the form function(response: HttpResponse | nil): void.

GetHTTPAsync

GetHTTPAsync(url: string, options: HttpOptions, callback: callable)

Parameters

Name Type Description
url string
options HttpOptions
callback callable A callback in the form function(response: HttpResponse | nil): void.

GetHTTPAsync

GetHTTPAsync(url: string, context: any, callback: callable)

Parameters

Name Type Description
url string
context any
callback callable A callback in the form function(context: any, response: HttpResponse | nil): void.

GetHTTPAsync

GetHTTPAsync(url: string, options: HttpOptions, context: any, callback: callable)

Parameters

Name Type Description
url string
options HttpOptions
context any
callback callable A callback in the form function(context: any, response: HttpResponse | nil): void.

HeadHTTP

HeadHTTP(url: string): HttpResponse | nil

Parameters

Name Type Description
url string

Returns

Type Description
HttpResponse | nil

HeadHTTP

HeadHTTP(url: string, options: HttpOptions): HttpResponse | nil

Parameters

Name Type Description
url string
options HttpOptions

Returns

Type Description
HttpResponse | nil

HeadHTTPAsync

HeadHTTPAsync(url: string, callback: callable)

Parameters

Name Type Description
url string
callback callable A callback in the form function(response: HttpResponse | nil): void.

HeadHTTPAsync

HeadHTTPAsync(url: string, options: HttpOptions, callback: callable)

Parameters

Name Type Description
url string
options HttpOptions
callback callable A callback in the form function(response: HttpResponse | nil): void.

HeadHTTPAsync

HeadHTTPAsync(url: string, context: any, callback: callable)

Parameters

Name Type Description
url string
context any
callback callable A callback in the form function(context: any, response: HttpResponse | nil): void.

HeadHTTPAsync

HeadHTTPAsync(url: string, options: HttpOptions, context: any, callback: callable)

Parameters

Name Type Description
url string
options HttpOptions
context any
callback callable A callback in the form function(context: any, response: HttpResponse | nil): void.

PostHTTP

PostHTTP(url: string, data: string): HttpResponse | nil

Parameters

Name Type Description
url string
data string

Returns

Type Description
HttpResponse | nil

PostHTTP

PostHTTP(url: string, data: string, options: HttpOptions): HttpResponse | nil

Parameters

Name Type Description
url string
data string
options HttpOptions

Returns

Type Description
HttpResponse | nil

PostHTTPAsync

PostHTTPAsync(url: string, data: string, callback: callable)

Parameters

Name Type Description
url string
data string
callback callable A callback in the form function(response: HttpResponse | nil): void.

PostHTTPAsync

PostHTTPAsync(url: string, data: string, options: HttpOptions, callback: callable)

Parameters

Name Type Description
url string
data string
options HttpOptions
callback callable A callback in the form function(response: HttpResponse | nil): void.

PostHTTPAsync

PostHTTPAsync(url: string, data: string, context: any, callback: callable)

Parameters

Name Type Description
url string
data string
context any
callback callable A callback in the form function(context: any, response: HttpResponse | nil): void.

PostHTTPAsync

PostHTTPAsync(url: string, data: string, options: HttpOptions, context: any, callback: callable)

Parameters

Name Type Description
url string
data string
options HttpOptions
context any
callback callable A callback in the form function(context: any, response: HttpResponse | nil): void.

PutHTTP

PutHTTP(url: string, data: string): HttpResponse | nil

Parameters

Name Type Description
url string
data string

Returns

Type Description
HttpResponse | nil

PutHTTP

PutHTTP(url: string, data: string, options: HttpOptions): HttpResponse | nil

Parameters

Name Type Description
url string
data string
options HttpOptions

Returns

Type Description
HttpResponse | nil

PutHTTPAsync

PutHTTPAsync(url: string, data: string, callback: callable)

Parameters

Name Type Description
url string
data string
callback callable A callback in the form function(response: HttpResponse | nil): void.

PutHTTPAsync

PutHTTPAsync(url: string, data: string, options: HttpOptions, callback: callable)

Parameters

Name Type Description
url string
data string
options HttpOptions
callback callable A callback in the form function(response: HttpResponse | nil): void.

PutHTTPAsync

PutHTTPAsync(url: string, data: string, context: any, callback: callable)

Parameters

Name Type Description
url string
data string
context any
callback callable A callback in the form function(context: any, response: HttpResponse | nil): void.

PutHTTPAsync

PutHTTPAsync(url: string, data: string, options: HttpOptions, context: any, callback: callable)

Parameters

Name Type Description
url string
data string
options HttpOptions
context any
callback callable A callback in the form function(context: any, response: HttpResponse | nil): void.

DeleteHTTP

DeleteHTTP(url: string): HttpResponse | nil

Parameters

Name Type Description
url string

Returns

Type Description
HttpResponse | nil

DeleteHTTP

DeleteHTTP(url: string, data: string): HttpResponse | nil

Parameters

Name Type Description
url string
data string

Returns

Type Description
HttpResponse | nil

DeleteHTTP

DeleteHTTP(url: string, options: HttpOptions): HttpResponse | nil

Parameters

Name Type Description
url string
options HttpOptions

Returns

Type Description
HttpResponse | nil

DeleteHTTP

DeleteHTTP(url: string, data: string, options: HttpOptions): HttpResponse | nil

Parameters

Name Type Description
url string
data string
options HttpOptions

Returns

Type Description
HttpResponse | nil

DeleteHTTPAsync

DeleteHTTPAsync(url: string, callback: callable)

Parameters

Name Type Description
url string
callback callable A callback in the form function(response: HttpResponse | nil): void.

DeleteHTTPAsync

DeleteHTTPAsync(url: string, data: string, callback: callable)

Parameters

Name Type Description
url string
data string
callback callable A callback in the form function(response: HttpResponse | nil): void.

DeleteHTTPAsync

DeleteHTTPAsync(url: string, options: HttpOptions, callback: callable)

Parameters

Name Type Description
url string
options HttpOptions
callback callable A callback in the form function(response: HttpResponse | nil): void.

DeleteHTTPAsync

DeleteHTTPAsync(url: string, data: string, options: HttpOptions, callback: callable)

Parameters

Name Type Description
url string
data string
options HttpOptions
callback callable A callback in the form function(response: HttpResponse | nil): void.

DeleteHTTPAsync

DeleteHTTPAsync(url: string, context: any, callback: callable)

Parameters

Name Type Description
url string
context any
callback callable A callback in the form function(context: any, response: HttpResponse | nil): void.

DeleteHTTPAsync

DeleteHTTPAsync(url: string, data: string, context: any, callback: callable)

Parameters

Name Type Description
url string
data string
context any
callback callable A callback in the form function(context: any, response: HttpResponse | nil): void.

DeleteHTTPAsync

DeleteHTTPAsync(url: string, options: HttpOptions, context: any, callback: callable)

Parameters

Name Type Description
url string
options HttpOptions
context any
callback callable A callback in the form function(context: any, response: HttpResponse | nil): void.

DeleteHTTPAsync

DeleteHTTPAsync(url: string, data: string, options: HttpOptions, context: any, callback: callable)

Parameters

Name Type Description
url string
data string
options HttpOptions
context any
callback callable A callback in the form function(context: any, response: HttpResponse | nil): void.

OptionsHTTP

OptionsHTTP(url: string): HttpResponse | nil

Parameters

Name Type Description
url string

Returns

Type Description
HttpResponse | nil

OptionsHTTP

OptionsHTTP(url: string, options: HttpOptions): HttpResponse | nil

Parameters

Name Type Description
url string
options HttpOptions

Returns

Type Description
HttpResponse | nil

OptionsHTTPAsync

OptionsHTTPAsync(url: string, callback: callable)

Parameters

Name Type Description
url string
callback callable A callback in the form function(response: HttpResponse | nil): void.

OptionsHTTPAsync

OptionsHTTPAsync(url: string, options: HttpOptions, callback: callable)

Parameters

Name Type Description
url string
options HttpOptions
callback callable A callback in the form function(response: HttpResponse | nil): void.

OptionsHTTPAsync

OptionsHTTPAsync(url: string, context: any, callback: callable)

Parameters

Name Type Description
url string
context any
callback callable A callback in the form function(context: any, response: HttpResponse | nil): void.

OptionsHTTPAsync

OptionsHTTPAsync(url: string, options: HttpOptions, context: any, callback: callable)

Parameters

Name Type Description
url string
options HttpOptions
context any
callback callable A callback in the form function(context: any, response: HttpResponse | nil): void.

PatchHTTP

PatchHTTP(url: string, data: string): HttpResponse | nil

Parameters

Name Type Description
url string
data string

Returns

Type Description
HttpResponse | nil

PatchHTTP

PatchHTTP(url: string, data: string, options: HttpOptions): HttpResponse | nil

Parameters

Name Type Description
url string
data string
options HttpOptions

Returns

Type Description
HttpResponse | nil

PatchHTTPAsync

PatchHTTPAsync(url: string, data: string, callback: callable)

Parameters

Name Type Description
url string
data string
callback callable A callback in the form function(response: HttpResponse | nil): void.

PatchHTTPAsync

PatchHTTPAsync(url: string, data: string, options: HttpOptions, callback: callable)

Parameters

Name Type Description
url string
data string
options HttpOptions
callback callable A callback in the form function(response: HttpResponse | nil): void.

PatchHTTPAsync

PatchHTTPAsync(url: string, data: string, context: any, callback: callable)

Parameters

Name Type Description
url string
data string
context any
callback callable A callback in the form function(context: any, response: HttpResponse | nil): void.

PatchHTTPAsync

PatchHTTPAsync(url: string, data: string, options: HttpOptions, context: any, callback: callable)

Parameters

Name Type Description
url string
data string
options HttpOptions
context any
callback callable A callback in the form function(context: any, response: HttpResponse | nil): void.

Socket

Socket(family: NetSocketFamily, type: NetSocketType): NetSocket | nil

Parameters

Name Type Description
family NetSocketFamily
type NetSocketType

Returns

Type Description
NetSocket | nil
Last modified October 17, 2023: Update docs for 20056 (ba5f066e)