Skip to main content

rSUNCHttpRequest

Type

Properties

Url

rSUNCHttpRequest.Url: string

The URL to send the request to

Method

rSUNCHttpRequest.Method: "GET" | "POST" | "PATCH" | "PUT" | "DELETE"

The HTTP method this request needs to be done with

Body

rSUNCHttpRequest.Body: string?

The body of the HTTP request. May be empty.

Headers

rSUNCHttpRequest.Headers: {[string]string}

Table of HTTP headers.

Cookies

rSUNCHttpRequest.Cookies: {[string]string}

Table of Cookies.

Show raw api
{
    "functions": [],
    "properties": [
        {
            "name": "Url",
            "desc": "The URL to send the request to",
            "lua_type": "string",
            "source": {
                "line": 12,
                "path": "impl/Types/rSUNCHttpRequest.luau"
            }
        },
        {
            "name": "Method",
            "desc": "The HTTP method this request needs to be done with",
            "lua_type": "\"GET\" | \"POST\" | \"PATCH\" | \"PUT\" | \"DELETE\"",
            "source": {
                "line": 19,
                "path": "impl/Types/rSUNCHttpRequest.luau"
            }
        },
        {
            "name": "Body",
            "desc": "The body of the HTTP request. May be empty.",
            "lua_type": "string?",
            "source": {
                "line": 26,
                "path": "impl/Types/rSUNCHttpRequest.luau"
            }
        },
        {
            "name": "Headers",
            "desc": "Table of HTTP headers.",
            "lua_type": "{ [string]: string }",
            "source": {
                "line": 34,
                "path": "impl/Types/rSUNCHttpRequest.luau"
            }
        },
        {
            "name": "Cookies",
            "desc": "Table of Cookies.",
            "lua_type": "{ [string]: string }",
            "source": {
                "line": 42,
                "path": "impl/Types/rSUNCHttpRequest.luau"
            }
        }
    ],
    "types": [],
    "name": "rSUNCHttpRequest",
    "desc": "",
    "tags": [
        "Type"
    ],
    "source": {
        "line": 5,
        "path": "impl/Types/rSUNCHttpRequest.luau"
    }
}