Files

655 B

tags, references
tags references
api/space-lua
client/space_lua/stdlib/net.ts
plug-api/lib/native_fetch.ts

HTTP APIs

Warning

Warning Deprecated: use API/net instead.

http.request

http.request(url, options?)

Deprecated: Use net.proxyFetch instead.

Performs an authenticated HTTP request through the server proxy.

Parameters:

  • url (string) — Target URL.
  • options? (table) — Method, headers, body, and response encoding.

Returns:

  • table — Status, headers, and decoded response body.

See: API/net#net.proxyFetch(url, options?)