docs: baked a lot of API docs
This commit is contained in:
+21
-1
@@ -10,4 +10,24 @@ HTTP APIs
|
||||
> **warning** Warning
|
||||
> Deprecated: use [[API/net]] instead.
|
||||
|
||||
${spacelua.renderApiDocumentation("http")}
|
||||
<!--#lua spacelua.renderApiDocumentation("http") -->
|
||||
## 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?)]]
|
||||
<!--/lua-->
|
||||
|
||||
|
||||
Reference in New Issue
Block a user