HttpRequestOptions
Fields accepted by request.
Fields
| Member | Type / signature | Meaning |
|---|---|---|
Url | string | Required http:// or https:// URL. |
Method | string? | HTTP method; empty or missing uses GET. |
Body | string? | Request bytes; defaults to empty. |
Headers | table? | 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.
