AcediaDocumentation

HttpRequestOptions

Fields accepted by request.

Fields

MemberType / signatureMeaning
UrlstringRequired http:// or https:// URL.
Methodstring?HTTP method; empty or missing uses GET.
Bodystring?Request bytes; defaults to empty.
Headerstable?Supported header names and text values.

Header support

Only Content-Type, User-Agent, Accept, Authorization, Cookie and Referer are read from Headers. Other names are dropped. The transport also receives Acedia-Fingerprint: acedia. Cookies and custom authentication are supplied explicitly; the options do not implement a browser cookie jar.

local options = {
    Url = "https://example.com",
    Method = "GET",
    Headers = { Accept = "text/html" },
}
local response = request(options)
print(response.StatusCode)

These are the fields read by the inspected implementation; fields such as Timeout or Cookies are not consumed by this wrapper.

On this page