Show / Hide Table of Contents

Class HTTP

Make HTTP requests. You must whitelist any hosts you plan to contact in mods/http-whitelist.txt.

Inheritance
System.Object
HTTP
Namespace: Mannequin.Bindings
Assembly: Collapse.dll
Syntax
public static class HTTP : object

Methods

Get(String, Closure)

GET a Web page over HTTP.

Declaration
public static AsyncOperation Get(string url, Closure callback)
Parameters
Type Name Description
System.String url

The URL to GET. Must be whitelisted in http-whitelist.txt

Closure callback

What to call when we have data

Returns
Type Description
AsyncOperation

An AsyncOperation representing this action, or null if this URL isn't whitelisted.

IsWhitelistedUrl(String)

Determine whether a URL is whitelisted.

Declaration
public static bool IsWhitelistedUrl(string url)
Parameters
Type Name Description
System.String url

The URL to check

Returns
Type Description
System.Boolean

Whether the URL is whitelisted or not

Post(String, Dictionary<String, String>, Closure)

POST to a Web page over HTTP.

Declaration
public static AsyncOperation Post(string url, Dictionary<string, string> data, Closure callback)
Parameters
Type Name Description
System.String url

The URL to POST to. Must be whitelisted in http-whitelist.txt

Dictionary<System.String, System.String> data

The data to POST

Closure callback

What to call when we have data

Returns
Type Description
AsyncOperation

An AsyncOperation representing this action, or null if this URL isn't whitelisted.

Back to top © 2020 Anarkis Gaming. All rights reserved. Generated by DocFX