- Dokumentacja
- Funkcje serwera
- getRemoteRequestInfo
Funkcja
getRemoteRequestInfo
Zwraca stan zapytania HTTP: adres, postęp i rozmiar. W obecnej wersji serwera zwraca false.
Składnia
table getRemoteRequestInfo(request theRequest)Argumenty
theRequestrequest- Zapytanie.
Różnice względem MTA:SA
- Tych argumentów z MTA:SA tu nie ma:
int postDataLength = 0 [, bool includeHeaders = false ]
W MTA:SA
getRemoteRequestInfo(request theRequest, int postDataLength = 0 [, bool includeHeaders = false ])Zwraca
Tabela z informacjami albo false.
Przykład
for _, request in ipairs(getRemoteRequests()) do
local info = getRemoteRequestInfo(request)
if info then outputServerLog(info.url) end
end