Net

NodeDescriptionInputsOutputs
dns_lookupResolves a hostname to its IP addresses.host Textaddresses Json, count Number
http_requestMakes an HTTP request and returns the response.url Text, method Text, body Text, headers Jsonbody Text, status Number, headers Json
query_decodeDecodes a URL query string into a JSON object.query Textparams Json
query_encodeEncodes a JSON object into a URL query string.params Jsonquery Text
url_buildBuilds a URL from individual components.scheme Text, host Text, port Number, path Text, query Text, fragment Texturl Text
url_parseParses a URL into its components.url Textscheme Text, host Text, port Number, path Text, query Text, fragment Text

dns_lookup

Resolves a hostname to its IP addresses.

Inputs:

Outputs:

See also: url_parse, http_request

http_request

Makes an HTTP request and returns the response.

Inputs:

Outputs:

See also: data/json_parse, url_parse, query_decode

query_decode

Decodes a URL query string into a JSON object.

Inputs:

Output: params (Json) — decoded key-value pairs

Example: query = q=hello+world&page=1{"page":"1","q":"hello world"}

See also: query_encode, url_parse

query_encode

Encodes a JSON object into a URL query string.

Inputs:

Output: query (Text) — URL-encoded query string

Example: params = {"page":"1","q":"hello world"}q=hello+world&page=1

See also: query_decode, url_build

url_build

Builds a URL from individual components.

Inputs:

Output: url (Text) — assembled URL

Example: fragment = , host = example.com, path = /api, port = 0, query = , scheme = httpshttps://example.com/api

See also: url_parse, query_encode

url_parse

Parses a URL into its components.

Inputs:

Outputs:

Example: url = https://example.com:8080/api?key=val#top{"fragment":"top","host":"example.com","path":"/api","port":8080,"query":"key=val","scheme":"https"}

See also: url_build, http_request