Networking and sockets.
Networking and sockets.
class Net::HttpRequest
Holds the state of an executing HTTP request.
class Net::FormPair
Key value pair returned by Net::ParseUrlEncodedForm.
class Net::Socket
A non-blocking TCP socket.
HttpRequest@ Net::HttpGet(const string&in url)
Creates an HTTP GET request to the given URL and automatically starts the request.
Net::HttpRequest@ HttpRequest@ Net::HttpPost(const string&in url, const string&in data = "", const string&in contentType = "application/x-www-form-urlencoded")
Creates an HTTP POST request to the given URL and automatically starts the request.
Net::HttpRequest@ HttpRequest@ Net::HttpHead(const string&in url)
Creates an HTTP HEAD request to the given URL and automatically starts the request.
Net::HttpRequest@ HttpRequest@ Net::HttpPut(const string&in url, const string&in data = "", const string&in contentType = "application/x-www-form-urlencoded")
Creates an HTTP PUT request to the given URL and automatically starts the request.
Net::HttpRequest@ HttpRequest@ Net::HttpDelete(const string&in url)
Creates an HTTP DELETE request to the given URL and automatically starts the request.
Net::HttpRequest@ HttpRequest@ Net::HttpPatch(const string&in url, const string&in data = "", const string&in contentType = "application/x-www-form-urlencoded")
Creates an HTTP PATCH request to the given URL and automatically starts the request.
Net::HttpRequest@ FormPair[]@ Net::ParseUrlEncodedForm(const string&in input)
Parses a list of key-value pairs encoded as application/x-www-form-urlencoded as specified by WHATWG's URL living standard. This can be used for URL query strings as well.
Net::FormPair[]@ string Net::WriteUrlEncodedForm(const FormPair[]&in pairs)
Serializes a list of key-value pairs to application/x-www-form-urlencoded as specified by WHATWG's URL living standard. This can be used for URL query strings as well.
string