xod/net@0.37.3

License: AGPL-3.0

General types and operations to manage network connections
NodeDescription
close
Closes an open TCP connection
format-http-request
Assembles HTTP request message
http-get
Performs an HTTP GET request and returns the response as a stream of characters
http-get-json
Performs an HTTP GET request and returns the response as a stream of parsed JSON chunks.
http-post
Performs an HTTP POST request and returns the response as a stream of characters
format-ip
Converts an IP address to a string
http-response-body
Skips response headers and outputs only the body. Raises error if response code is not 200.
http-request
Performs an HTTP request and returns the response as a stream of characters
ip-to-octets
Splits an IP address into 4 octets
mac-address
Assembles a MAC address from 6 octets
open-tcp
Open a TCP connection to the specified server. Possible errors: — Can't open TCP connection
ip-address
Assembles an IP address from 4 octets
receive
Read a response from an opened connection as a stream of bytes until it closes
send
Send a message through an opened TCP connection Possible errors: — Can't send the data to the socket